Laravel 5 - env local debug true 未显示错误 [英] Laravel 5 - env local debug true no errors shown

查看:34
本文介绍了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 未显示错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆