修复Laravel The only supported ciphers are AES-128-CBC and AES-256-CBC 问题

在项目中,删除了 .envAPP_KEY的值,再运行 以下命令生成APP_KEY的值,访问 依然是The only supported ciphers are AES-128-CBC and AES-256-CBC with the correct key lengths错误信息;

php artisan key:generate 

 

在项目根目录中运行以下命令之后就修复以上的问题;

php artisan config:clear

 

如果需要再次将配置缓存起来,可以运行

php artisan config:cache

 

posted @ 2020-08-20 14:13  糖糖Y  阅读(456)  评论(0编辑  收藏  举报