他只支持密码是AES-128-CBC和AES-256-CBC与正确的密钥长度。 laravel 5.3
问题描述:
我使用composer安装了一个新的laravel 5.3的新副本,但我一直收到此错误
I installed a new fresh copy of laravel 5.3 using composer but i keep getting this Error
唯一支持的密码是AES-128 -CBC和AES-256-CBC与
正确的密钥长度。即使我的config.php文件在config目录中指定
'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',
答
您需要在应用文件夹中加入 .env ,然后运行:
You need to have .env on your appication folder then run:
$ php artisan key:generate
strong> .env 复制 .env :
If you don't have .env copy from .env.example:
$ cp .env.example .env