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

查看:187
本文介绍了Laravel 5 - env local debug true没有显示错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在尝试为我的应用启用调试,但是看起来我没有任何反馈。环境设置为本地(在.env文件),如果我运行

  php artisan env 

我得到这个

 当前应用程序环境:local 

我本地env的调试配置设置为 true / p>

  return [

'debug'=>真的,

另外,如果我设置在我的主配置文件(app.php里面的配置文件夹) debug = true 我仍然有意见表示代码中有错误。



我只有一个空页面如果代码中有错误(如debug = false)



我缺少什么?

解决方案

我已经在我的主机(Mac OS X)上通过 chmod -R 777 storage / 解决了这个问题。在我的客机(Ubuntu 14.04) chmod -R 777存储/ 实际上没有更改权限。


I'm trying to enable the debug for my app but it looks like I don't have any feedback.

The environment is set to local (in the .env file) and if I run

php artisan env

I get this

Current application environment: local

The debug config for my local env is set to true

return [

    '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.

I only have an empty page if there is an error in the code (as for debug = false)

What am I missing?

解决方案

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天全站免登陆