Laravel - No supported encrypter found. The cipher and / or key length are invalid.

The following exception occurred:

Run

php artisan key:generate

It's possible you get this exception:

If so, create a new .env file:

cp .env.example .env

Try to generate the key again.

Application key set successfully.

APP_KEY should now be set in .env automaticly.

You can also set this key in 'config\app.php' :

'key' => env('APP_KEY')
'key' => '[base64:******]'