問(wèn)題描述
我正在嘗試為我的應(yīng)用啟用調(diào)試,但我似乎沒(méi)有任何反饋.
I'm trying to enable the debug for my app but it looks like I don't have any feedback.
環(huán)境設(shè)置為本地(在 .env 文件中),如果我運(yùn)行
The environment is set to local (in the .env file) and if I run
php artisan env
我明白了
Current application environment: local
我的本??地環(huán)境的調(diào)試配置設(shè)置為 true
The debug config for my local env is set to true
return [
'debug' => true,
此外,如果我在主配置文件(config 文件夾中的 app.php)中設(shè)置了 debug = true
,我仍然會(huì)收到代碼中有錯(cuò)誤的反饋.
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.
如果代碼中有錯(cuò)誤,我只有一個(gè)空頁(yè)面(至于 debug = false)
I only have an empty page if there is an error in the code (as for debug = false)
我錯(cuò)過(guò)了什么?
推薦答案
我已經(jīng)在我的主機(jī) (Mac OS X) 上通過(guò) chmod -R 777 storage/
解決了這個(gè)問(wèn)題.在我的客戶機(jī) (Ubuntu 14.04) 上 chmod -R 777 storage/
實(shí)際上沒(méi)有改變權(quán)限.
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.
這篇關(guān)于Laravel 5 - env local debug true 未顯示錯(cuò)誤的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!