Browse Source

fix status code

Taylor Otwell 8 years ago
parent
commit
395b69b540
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Exceptions/Handler.php

+ 1 - 1
app/Exceptions/Handler.php

@@ -43,7 +43,7 @@ class Handler extends ExceptionHandler
     public function render($request, Exception $e)
     {
         if ($e instanceof ModelNotFoundException) {
-            $e = new NotFoundHttpException(404, $e->getMessage(), $e);
+            $e = new NotFoundHttpException($e->getMessage(), $e);
         }
 
         return parent::render($request, $e);