問題描述
我正在嘗試為我的應用啟用調試,但我似乎沒有任何反饋.
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 未顯示錯誤的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!