当前位置:网站首页>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.
边栏推荐
- leetcode 10. Regular expression matching regular expression matching (difficult)
- Write API documents first or code first?
- How to choose note taking software? Comparison and evaluation of notion, flowus and WOLAI
- leetcode 10. Regular Expression Matching 正则表达式匹配 (困难)
- AVC1与H264的区别
- 峰会回顾|保旺达-合规和安全双驱动的数据安全整体防护体系
- mysql获得时间
- Nantong online communication group
- go map
- 4年工作经验,多线程间的5种通信方式都说不出来,你敢信?
猜你喜欢
How to apply the updated fluent 3.0 to applet development
什么是网络端口
记录一下在深度学习-一些bug处理
RHCSA10
Usage, installation and use of TortoiseSVN
Android本地Sqlite数据库的备份和还原
[notes of in-depth study paper]uctransnet: rethink the jumping connection in u-net from the perspective of transformer channel
What are the private addresses
Lb10s-asemi rectifier bridge lb10s
[深度学习论文笔记]TransBTSV2: Wider Instead of Deeper Transformer for Medical Image Segmentation
随机推荐
How to realize batch sending when fishing
Principle and configuration of RSTP protocol
What is a network port
The "Baidu Cup" CTF competition was held in February 2017, Web: explosion-2
龙芯派2代烧写PMON和重装系统
CAN和CAN FD
MMSeg——Mutli-view时序数据检查与可视化
Go pointer
leetcode 10. Regular expression matching regular expression matching (difficult)
Talk about seven ways to realize asynchronous programming
CloudCompare——点云切片
精彩速递|腾讯云数据库6月刊
mysql获得时间
Record in-depth learning - some bug handling
Nantong online communication group
Go array and slice
【每日一题】1200. 最小绝对差
运筹说 第68期|2022年最新影响因子正式发布 快看管科领域期刊的变化
[deep learning paper notes] hnf-netv2 for segmentation of brain tumors using multimodal MR imaging
[深度学习论文笔记]使用多模态MR成像分割脑肿瘤的HNF-Netv2