I just had an issue where I updated a value in a Laravel install’s .env file. I tried just running the following command, per suggestions from other sites, but it didn’t work:
php artisan config:cache
Instead, the following commands fixed the issue and actually allowed the config values in production to be changed:
php artisan config:clear
php artisan cache:clear
php artisan config:cache