当前位置:网站首页>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.
边栏推荐
- 【Hot100】33. Search rotation sort array
- TortoiseSVN使用情形、安装与使用
- CAN和CAN FD
- 程序员成长第八篇:做好测试工作
- Talk about seven ways to realize asynchronous programming
- [深度学习论文笔记]使用多模态MR成像分割脑肿瘤的HNF-Netv2
- 峰会回顾|保旺达-合规和安全双驱动的数据安全整体防护体系
- Shu tianmeng map × Weiyan technology - Dream map database circle of friends + 1
- leetcode 10. Regular Expression Matching 正则表达式匹配 (困难)
- Cloudcompare - point cloud slice
猜你喜欢
私有地址有那些
ASEMI整流桥HD06参数,HD06图片,HD06应用
碎片化知识管理工具Memos
Shu tianmeng map × Weiyan technology - Dream map database circle of friends + 1
MSTP and eth trunk
"Baidu Cup" CTF competition in September, web:upload
Mmseg - Mutli view time series data inspection and visualization
爱可生SQLe审核工具顺利完成信通院‘SQL质量管理平台分级能力’评测
华为推送服务内容,阅读笔记
国际自动机工程师学会(SAE International)战略投资几何伙伴
随机推荐
Shuttle INKWELL & ink components
聊聊异步编程的 7 种实现方式
Matlab paper chart standard format output (dry goods)
Interviewer soul torture: why does the code specification require SQL statements not to have too many joins?
Clock cycle
真正的缓存之王,Google Guava 只是弟弟
Get you started with Apache pseudo static configuration
JPA规范总结和整理
What are the private addresses
js判断数组中是否存在某个元素(四种方法)
go map
STM32 and motor development (from architecture diagram to documentation)
峰会回顾|保旺达-合规和安全双驱动的数据安全整体防护体系
Operational research 68 | the latest impact factors in 2022 were officially released. Changes in journals in the field of rapid care
Navigation property and entityset usage in SAP segw transaction code
MSTP and eth trunk
The "Baidu Cup" CTF competition was held in February 2017, Web: explosion-2
Android本地Sqlite数据库的备份和还原
“百度杯”CTF比赛 九月场,Web:Upload
LB10S-ASEMI整流桥LB10S