如何修复 – 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 – 文件
'key' => env('APP_KEY'),'cipher' => 'AES-256-CBC', .env – 文件
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.
解决方法
您只需键入cmd:
php artisan key:generate (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |