I am having a cache issue. I have a project and worked on local. Now whenever i upload to server and edit the .env
and config/app.php
file. It is not taking the effect.
But, if i set the .env
configuartions of server in local and cleared the cache using php artisan config:cache
and upload it to server. It works. Should i always do this method?
So everytime i need change .env
i should first change it in local and clear the cache and upload in server? Or is there any method to directly command on server.
And again, in another project. Editing .env
and config/app.php
file directly in server takes immediate effect. What is happening?