Reset .Env File in Laravel

Use this command when you have made changes to a .env file in laravel and you want the changes to take affect:

$ php artisan config:clear

Output:

INFO  Configuration cache cleared successfully.

Very easy and straight forward. This was very helpful for me because today I had to make some changes to my .env file but the changes were not being applied when I visit the endpoint url. I even rebuilt the laravel folder in the remote hosting server but no change. For some reason, I could not see the new changes and edit the environment file. Finally after researching I found the solution of using the config clear command to clear the cache in Laravel.