I am using php 7.3.2 on window 7. When I try to run php artisan serve
, it shows this error on the webpage:
Whoops, looks like something went wrong.
Is it related to the message that I received when I want to migrate database, it says
Application In Production!
My error in laravel log shows
production.ERROR: RuntimeException: The only supported ciphers are AES-128-CBC and AES-256-CBC with the correct key lengths. in C:xampphtdocsInventoryvendorlaravelframeworksrcIlluminateEncryptionEncrypter.php:43
Advertisement
Answer
Following the error in your log file you seem to be missing your key
attribute in your .env
file. See this SO question for a solution.
To generate the secret key, run
$ php artisan key:generate
make sure to follow the official docs when installing Laravel.