Laravel报The only supported ciphers are AES-128-CBC and AES-256-CBC with the correct key lengths.错误
Laravel 出现”RuntimeException inEncrypter.php line 43: The only supported ciphers are AES-128-CBC and AES-256-CBC with the correct key lengths.”问题的解决办法
首先在命令行到项目的根目录下面,输入下面的命令:
php artisan key:generate
效果:
这时候项目根目录下的.env
文件里的APP_KEY
应该会有值了:
若没有,则将上一步生成的key值输入进去即可。