APP_KEY未设置出错

2017-07-28  本文已影响16人  杨森Janssen

出错提示:RuntimeExceptioninEncrypter.php line 43: The only supported ciphers are AES-128-CBC and AES-256-CBC with the correct key lengths.

解决方式:1.首先在cmd命令行下定位到项目所在的根目录下,接着命令行输入:php artisan key:generate

2.查看项目根目录下的.env文件里的APP_KEY,如果没有值了,则将上一步生成的key值输入进去

上一篇 下一篇

猜你喜欢

热点阅读