The only supported ciphers are AES-128-CBC and AES-256-CBC with the correct key lengths.

来源:互联网 发布:手机怎么切换软件 编辑:程序博客网 时间:2024/05/18 22:53

Laravel 出现"RuntimeException inEncrypter.php line 43: The only supported ciphers are AES-128-CBC and AES-256-CBC with the correct key lengths."问题的解决办法


首先在cmd命令行下定位到项目所在的根目录下,接着输入:

php artisan key:generate

效果:

这时候项目根目录下的.env文件里的APP_KEY应该会有值了:

若没有,则将上一步生成的key值输入进去即可。

2 0
原创粉丝点击