Tag Archives: No application encryption key has been specified.

Laravel Error: No application encryption key has been specified.

 

If there is no. Env in the root directory of the file

1. Change the name of. Env.example and use the command copy to. Env

2

php artisan key:generate Get the password and save it to. Env automatically

3. Copy the password to config/APP

Key in PHP

 

4. Rerun, OK

In case of. Env, proceed to the second step directly

Neither. Please re-install laravel