Hi Coder, How are you today? I hope you are okay. Are you still working with the framework laravel? If so, have you ever come across this error?
and then what’s the solution? The default cipher in confing/app.php is “AES-256-CBC” which needs a 32 character string, but the default key is “SomeRandomString,” which is only 16 characters. So, you can either set the cipher to “AES-128-CBC” which only needs 16 characters, or generate a new 32 character string for the key.
But before, copy or move the file .env.example
$ mv .env.example .env
Entering “php artisan key:gen”
$ php artisan key:generate ←[32mApplication key [base64:o1wvSoJzkxzFWrf9Nu9Vm5LzraVuxEFfwPkOxocXodg=] set successfully.←[39m
and now look, laravel has been running perfectly.