I use Laravel 6.2 with valet and PHP 7.3.12
The problem is I want to change DB_DATABASE=laravel to DB_DATABASE=something_else in .env file
but it doesn't reload the new .env value at all
I have already tried this command:
php artisan config:clear
php artisan config:cache
but it still doesn't change at all.
I even try to add a new key to .env file and query it in Tinker and the new key doesn't add as well.
After completion of
.envedit, You can clear the configuration cache with the following artisan command:php artisan config:cacheUse
php artisan key:generateit will generate the new key to your.envfileNOTE: If there is still error then you do not need your restart computer just try this:
If you are using the PHP's default web server (eg.
php artisan serve) you need to restart your serverOR
If you have used XAMPP then restart your Apache server