Ad

How To Refresh .ENV File In Laravel's Forge?

- 1 answer

I've made a change to my .ENV file and the new changes are not taking effect inside Laravel's Forge. How do I tell Forge to re-fetch/re-fresh it?

I've restarted all services. No difference. Still using old data from previous ENV. I've setup Forge to use BitBucket repo and AWS.

Ad

Answer

The .env file isn't cached, however the config is. You can try running php artisan config:clear which removes the configuration cache file.

You can look at this thread for more info.

Ad
source: stackoverflow.com
Ad