当前位置:网站首页>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.
边栏推荐
- [深度学习论文笔记]UCTransNet:从transformer的通道角度重新思考U-Net中的跳跃连接
- stm32逆向入门
- FPGA learning notes: vivado 2019.1 add IP MicroBlaze
- Interviewer soul torture: why does the code specification require SQL statements not to have too many joins?
- 数据泄露怎么办?'华生·K'7招消灭安全威胁
- CAN和CAN FD
- Word document injection (tracking word documents) incomplete
- Shuttle INKWELL & ink components
- Could not set property ‘id‘ of ‘class XX‘ with value ‘XX‘ argument type mismatch 解决办法
- Rocky基础命令3
猜你喜欢
随机推荐
手把手带你入门Apache伪静态的配置
通讯录(链表实现)
【Hot100】34. 在排序数组中查找元素的第一个和最后一个位置
Record in-depth learning - some bug handling
STM32 and motor development (from architecture diagram to documentation)
真正的缓存之王,Google Guava 只是弟弟
How to realize batch sending when fishing
mysql获得时间
一文详解ASCII码,Unicode与utf-8
[深度学习论文笔记]TransBTSV2: Wider Instead of Deeper Transformer for Medical Image Segmentation
Integer ==比较会自动拆箱 该变量不能赋值为空
Shu tianmeng map × Weiyan technology - Dream map database circle of friends + 1
面试官灵魂拷问:为什么代码规范要求 SQL 语句不要过多的 join?
数据湖(七):Iceberg概念及回顾什么是数据湖
go map
Go string operation
【每日一题】1200. 最小绝对差
碎片化知识管理工具Memos
Flutter draws animation effects of wave movement, curves and line graphs
Summary and arrangement of JPA specifications









