Things to do after modifying .env file - kdaisho/Blog GitHub Wiki

Here's one thing you make sure to do after making any change on configurations, like .env file for example.

Do

php artisan config:clear

to clear the cache. Otherwise you're not going to see the changes you've made. It makes you cry.

Then do

php artisan config:cache

to take advantage of caching config files to save a couple of milliseconds of loading time.

Note: if there's links using closures, you can't use caching. All links should be using routing if you want to set cache. You can check your routing list by typing

php artisan route:list