唯一受支持的密码是具有正确密钥长度的AES-128-CBC和AES-256-CBC.拉拉韦尔5.3

问题描述:

我使用composer安装了Laravel 5.3的新副本,但出现此错误:

I installed a new fresh copy of Laravel 5.3 using composer but I'm getting this error:

仅受支持的密码是AES-128-CBC和AES-256-CBC,带有 正确的密钥长度.即使我的config目录中的app.php文件也指定了
'cipher'=>'AES-128-CBC'

The only supported ciphers are AES-128-CBC and AES-256-CBC with the correct key lengths. Even though my app.php file in config directory specify
'cipher' => 'AES-128-CBC'

您需要在appication文件夹中具有 .env ,然后运行:

You need to have .env on your appication folder then run:

$ php artisan key:generate

如果您没有 .env.example 中的 .env 副本:

$ cp .env.example .env