Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

thc1967's avatar

Force Forge to reload ENV?

How do I force Forge to reload the environment variables?

I've tried changing the environment variables through Forge. I've tried restarting Nginx, PHP, and the server. I've tried going into the web app via command line and running php artisan cache:clear and php artisan config:clear.

Nothing seems to reset the config / env cache.

How can I tell?

I change the APP_NAME. Doesn't appear to change when serving from my Forge managed server. When I change it in the .ENV file on my local dev box, a simple browser refresh refreshes the displayed APP_NAME.

0 likes
2 replies
Hondaman900's avatar

Did you ever get a reply to this question? I have the same issue.

Hondaman900's avatar

Well, to solve my problem I used artisan to clear the config cache with artisan config:clear. I had been using cache:clear which didn't effect the config cache/file.

1 like

Please or to participate in this conversation.