I discovered that I can't change something in the .env file and have Laravel pick it in next run. For example I changed
APP_ENV=production
to
APP_ENV=local
And upon running
artisan migrate
I still get asked if I am sure I want to run migration in production environment. Is there a way to get around this and not have to clear cache every time .env file is updated?
you need to run config:clear and cache:clear.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With