The following exception occurred:
RuntimeException in EncryptionServiceProvider.php line 45:
No supported encrypter found. The cipher and / or key length are invalid.
No supported encrypter found. The cipher and / or key length are invalid.
Run
php artisan key:generate
It's possible you get this exception:
[ErrorException]
file_get_contents(/Applications/MAMP/htdocs/davidvandertuijn.nl/.env): failed to open stream: No such file or directory
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:******]'
Categorieën
Laravel