当前位置:网站首页>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.
边栏推荐
- 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.
- DataPipeline双料入选中国信通院2022数智化图谱、数据库发展报告
- Flutter 绘制波浪移动动画效果,曲线和折线图
- Win10——轻量级小工具
- RHCSA9
- Flutter 3.0更新后如何应用到小程序开发中
- Binder communication process and servicemanager creation process
- Integer ==比较会自动拆箱 该变量不能赋值为空
- Navigation property and entityset usage in SAP segw transaction code
- Huawei push service content, read notes
猜你喜欢
随机推荐
A detailed explanation of ASCII code, Unicode and UTF-8
go 字符串操作
STM32 reverse entry
MySQL - database query - sort query, paging query
爱可生SQLe审核工具顺利完成信通院‘SQL质量管理平台分级能力’评测
Sorry, we can't open xxxxx Docx, because there is a problem with the content (repackaging problem)
C object storage
龙芯派2代烧写PMON和重装系统
[深度学习论文笔记]UCTransNet:从transformer的通道角度重新思考U-Net中的跳跃连接
MySQL --- 数据库查询 - 排序查询、分页查询
Go array and slice
Multi person cooperation project to see how many lines of code each person has written
go map
Reflection and imagination on the notation like tool
[notes of in-depth study paper]transbtsv2: wider instead of deep transformer for medical image segmentation
[MySQL usage Script] catch all MySQL time and date types and related operation functions (3)
DataPipeline双料入选中国信通院2022数智化图谱、数据库发展报告
TortoiseSVN使用情形、安装与使用
49. Grouping of alphabetic ectopic words: give you a string array, please combine the alphabetic ectopic words together. You can return a list of results in any order. An alphabetic ectopic word is a
French scholars: the explicability of counter attack under optimal transmission theory








