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

You only type in console:

php artisan key:generate

And if your app.php not change this Key, change manually.


Next if you should then happen to get this error message:

[ErrorException]
file_get_contents(/path/to/my/project/.env): failed to open stream: No such file or directory

Then make a copy of the .env.example file and try again:

cp .env.example .env
php artisan key:generate

Leave a Comment