当前位置:网站首页>Laravel框架运行报错:No application encryption key has been specified
Laravel框架运行报错:No application encryption key has been specified
2022-07-05 13:31:00 【夏已微凉、】
一、出现场景
启动Laravel框架项目报错:Whoops, looks like something went wrong,
修改config/app.php,显示 BUG 详情:把'debug' => env('APP_DEBUG', false),改为'debug' => env('APP_DEBUG', true),,报错:No application encryption key has been specified
二、出现原因
- 出现此问题的原因是:没有在
.env文件中设置应用程序加密密钥
三、解决办法
Linux中,在项目根目录下执行命令:
php artisan key:generate,如下
设置成功后 APP_KEY 会在根目录的
.env中有显示,如下
四、其他
- Linux下用命令:
ls -a查看文件夹下的所有文件(包括隐藏文件) - 姊妹篇 Laravel报错:Whoops, looks like something went wrong.
边栏推荐
- 手把手带你入门Apache伪静态的配置
- 【MySQL 使用秘籍】一網打盡 MySQL 時間和日期類型與相關操作函數(三)
- [深度学习论文笔记]使用多模态MR成像分割脑肿瘤的HNF-Netv2
- Talk about seven ways to realize asynchronous programming
- 【Hot100】33. 搜索旋转排序数组
- Record in-depth learning - some bug handling
- mysql获得时间
- Word document injection (tracking word documents) incomplete
- 龙芯派2代烧写PMON和重装系统
- Flutter 3.0更新后如何应用到小程序开发中
猜你喜欢
![[deep learning paper notes] hnf-netv2 for segmentation of brain tumors using multimodal MR imaging](/img/52/5e85743b1817de96a52e02b92fd08c.png)
[deep learning paper notes] hnf-netv2 for segmentation of brain tumors using multimodal MR imaging

记录一下在深度学习-一些bug处理
![[深度学习论文笔记]UCTransNet:从transformer的通道角度重新思考U-Net中的跳跃连接](/img/b6/f9da8a36167db10c9a92dabb166c81.png)
[深度学习论文笔记]UCTransNet:从transformer的通道角度重新思考U-Net中的跳跃连接

Sorry, we can't open xxxxx Docx, because there is a problem with the content (repackaging problem)

DataPipeline双料入选中国信通院2022数智化图谱、数据库发展报告

What happened to the communication industry in the first half of this year?

Huawei push service content, read notes

蜀天梦图×微言科技丨达梦图数据库朋友圈+1

UnicodeDecodeError: ‘utf-8‘ codec can‘t decode byte 0xe6 in position 76131: invalid continuation byt

DataPipeline双料入选中国信通院2022数智化图谱、数据库发展报告
随机推荐
Flutter 绘制波浪移动动画效果,曲线和折线图
Huawei push service content, read notes
Shu tianmeng map × Weiyan technology - Dream map database circle of friends + 1
The "Baidu Cup" CTF competition was held in February 2017, Web: explosion-2
Interviewer soul torture: why does the code specification require SQL statements not to have too many joins?
“百度杯”CTF比赛 九月场,Web:Upload
Integer ==比较会自动拆箱 该变量不能赋值为空
精彩速递|腾讯云数据库6月刊
[深度学习论文笔记]使用多模态MR成像分割脑肿瘤的HNF-Netv2
How to apply the updated fluent 3.0 to applet development
龙芯派2代烧写PMON和重装系统
53. Maximum subarray sum: give you an integer array num, please find a continuous subarray with the maximum sum (the subarray contains at least one element) and return its maximum sum.
leetcode:221. Maximum square [essence of DP state transition]
go 数组与切片
从外卖点单浅谈伪需求
UnicodeDecodeError: ‘utf-8‘ codec can‘t decode byte 0xe6 in position 76131: invalid continuation byt
法国学者:最优传输理论下对抗攻击可解释性探讨
Parsing XML using Dom4j
js判断数组中是否存在某个元素(四种方法)
Binder通信过程及ServiceManager创建过程