Laravel 5 - env local debug true 未显示错误

2021-12-18 00:00:00 debugging env php laravel laravel-5

我正在尝试为我的应用启用调试,但我似乎没有任何反馈.

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.

相关文章