Laravel 5 - env local debug true no errors shown(Laravel 5 - env local debug true 未显示错误)
问题描述
我正在尝试为我的应用启用调试,但我似乎没有任何反馈.
I'm trying to enable the debug for my app but it looks like I don't have any feedback.
环境设置为本地(在 .env 文件中),如果我运行
The environment is set to local (in the .env file) and if I run
php artisan env
我明白了
Current application environment: local
我的本地环境的调试配置设置为 true
The debug config for my local env is set to true
return [
'debug' => true,
此外,如果我在主配置文件(config 文件夹中的 app.php)中设置了 debug = true,我仍然会收到代码中有错误的反馈.
Also if I set in my main config file (app.php inside the config folder) the debug = true I still have ho feedback that there is an error in the code.
如果代码中有错误,我只有一个空页面(至于 debug = false)
I only have an empty page if there is an error in the code (as for debug = false)
我错过了什么?
推荐答案
我已经在我的主机 (Mac OS X) 上通过 chmod -R 777 storage/ 解决了这个问题.在我的客户机 (Ubuntu 14.04) 上 chmod -R 777 storage/ 实际上没有改变权限.
I have worked around the issue by chmod -R 777 storage/ on my host machine (Mac OS X). On my guest machine (Ubuntu 14.04) chmod -R 777 storage/ did not change permissions actually.
这篇关于Laravel 5 - env local debug true 未显示错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Laravel 5 - env local debug true 未显示错误
基础教程推荐
- 如何替换eregi() 2022-01-01
- 如何在 Laravel 5.3 注册中添加动态下拉列表列? 2021-01-01
- Cron Jobs 调用带有变量的 PHP 脚本 2022-01-01
- YouTube API v3 点赞视频,但计数器不增加 2022-01-01
- PHP 类:全局变量作为类中的属性 2021-01-01
- 如何在 Laravel 中使用 React Router? 2022-01-01
- 有什么方法可以用编码 UTF-8 而不是 Unicode 返回 PHP`json_encode`? 2021-01-01
- 在PHP中根据W3C规范Unicode 2022-01-01
- PHP PDO MySQL 查询 LIKE ->多个关键词 2021-01-01
- 学说 dbal querybuilder 作为准备好的语句 2022-01-01
