加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 站长学院 > PHP教程 > 正文

如何修复 – Encrypter.php第43行中的RuntimeException

发布时间:2020-12-13 21:58:55 所属栏目:PHP教程 来源:网络整理
导读:App.php – 文件 This is my App,php file 'key' = env('APP_KEY'),'cipher' = 'AES-256-CBC', .env – 文件 This is my .env file APP_ENV=localAPP_KEY=base64:CETuLOZZZi5QEEYXhyCO/O7l7fhM6LI5clvsT59cgTM=APP_DEBUG=trueAPP_LOG_LEVEL=debugAPP_URL=htt
App.php – 文件

This is my App,php file

'key' => env('APP_KEY'),'cipher' => 'AES-256-CBC',

.env – 文件

This is my .env file

APP_ENV=local
APP_KEY=base64:CETuLOZZZi5QEEYXhyCO/O7l7fhM6LI5clvsT59cgTM=
APP_DEBUG=true
APP_LOG_LEVEL=debug
APP_URL=http://localhost

DB_CONNECTION=mysql
DB_HOST=localhost
DB_PORT=3306
DB_DATABASE=ads
DB_USERNAME=root
DB_PASSWORD=null



PUSHER_APP_ID=
PUSHER_KEY=
PUSHER_SECRET=

错误是:

> RuntimeException in Encrypter.php line 43: The only supported ciphers
> are AES-128-CBC and AES-256-CBC with the correct key lengths.

Developers please help me to solve this problems.
Thanks

解决方法

您只需键入cmd:

php artisan key:generate

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读