I am using Laravel Forge to deploy my app's and recently I started playing with websockets.
Recently I needed to update the .env frequently and noticed that most of the time the .env was still using my old data.. I have tried php artisan config:clear & php artisan cache:clear in the Deploy Script but still same issue..
I am forced to manually enter data instead of using process.env.MIX_PUSHER_APP_CLUSTER & process.env.MIX_PUSHER_APP_KEY in my bootstrap.js
You shouldn't use env() in your blades/js files. It will always cause issues. Any env() shouldn't be used in the code - always place it in config files. i.e: config/pusher.php: