Issue
I have an angular & laravel app that uses pusher. I changed the apiKey, secret etc in the .env in laravel. It works well on local but when I try on AWS EC2 the credentials are still the old ones:
$config = config('broadcasting.connections.pusher');
dd($config) // gives old credentials only in staging/aws
I tried all the clearing: cache:clear, route:clear, route:cache config:clear config:cache optimize, view:clear
in the local and in the AWS-cli and it gave me the notification that everything was ok ('cleared!').
Is there a way to clear or set the .env through the AWS dashboard?
PS - the old credentials are no where to be found in the client & back side. Unless laravel itself is still storing the old credentials?
Solution
I went through the issue and turned out the .env was not updated to reflect the new keys
Answered By - AWS PS