fbpx

.env Changes Aren’t Updating in Laravel

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

Leave a Reply

Your email address will not be published. Required fields are marked *