how to reset .env configurations in laravel code example
Example: laravel commands to refresh env file
// NOTE: Five most important commands if your Laravel is not working
// as expected after some modifications in .env or database folder
php artisan config:clear
php artisan cache:clear
composer dump-autoload
php artisan view:clear
php artisan route:clear