Laravel 5 - env local debug true no errors shown

前端 未结 12 1603
天命终不由人
天命终不由人 2020-12-08 19:52

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



        
相关标签:
12条回答
  • 2020-12-08 20:18

    For me what worked perfectly was disabling hhvm in the Homestead.yaml file, then I did vagrant reload --provision and that was it!

    0 讨论(0)
  • 2020-12-08 20:19

    Even on Windows needs to do : chmod -R 777 storage/ You can run it with Git Bash;

    0 讨论(0)
  • 2020-12-08 20:26

    Go to config/app.php and if it is like this :

    'debug' => env('APP_DEBUG', false),

    Then it change to :

    'debug' => env('APP_DEBUG', true),

    this.

    0 讨论(0)
  • 2020-12-08 20:26

    I have faced same problem so i have checked handler.php file of exceptions folder where render function that have return value line is commented so page make blank.

    public function render($request, Exception $exception)
    {        
        //return parent::render($request, $exception);
    }
    
    0 讨论(0)
  • 2020-12-08 20:27

    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.

    0 讨论(0)
  • 2020-12-08 20:27

    I had a situation where I had the exact same symptom, some routes were not providing any feedback, just a white page, no error in the log no information at all.

    Turns out, I was adding a new middleware, and I forgot to return $next($request) from my handle method. This was even more frustrating, because this middleware did not apply to every route, so I assumed that there was an intermittent error that was being thrown but not displayed on these routes.

    0 讨论(0)
提交回复
热议问题