Laravel 5 - env local debug true no errors shown

前端 未结 12 1645
天命终不由人
天命终不由人 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:17

    As Blair said, it may turn out that you put some wrong code in the middleware or in 'Exceptions/Handler.php' e.g. :

    if($e->getStatusCode()===404) { ... }

    instead of

    if($e instanceof NotFoundHttpException) { ... }

提交回复
热议问题