fix status code
This commit is contained in:
parent
f478406894
commit
395b69b540
|
@ -43,7 +43,7 @@ public function report(Exception $e)
|
||||||
public function render($request, Exception $e)
|
public function render($request, Exception $e)
|
||||||
{
|
{
|
||||||
if ($e instanceof ModelNotFoundException) {
|
if ($e instanceof ModelNotFoundException) {
|
||||||
$e = new NotFoundHttpException(404, $e->getMessage(), $e);
|
$e = new NotFoundHttpException($e->getMessage(), $e);
|
||||||
}
|
}
|
||||||
|
|
||||||
return parent::render($request, $e);
|
return parent::render($request, $e);
|
||||||
|
|
Loading…
Reference in New Issue