]> BookStack Code Mirror - bookstack/blobdiff - app/Exceptions/Handler.php
Code cleanup, bug squashing
[bookstack] / app / Exceptions / Handler.php
index a3bc1e8b9e222e102fe7a8c93b1d2161362a0e8b..57078522b748bbbf905b1836705a4d24c0695bbb 100644 (file)
@@ -9,7 +9,6 @@ use Illuminate\Database\Eloquent\ModelNotFoundException;
 use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
 use Illuminate\Http\JsonResponse;
 use Illuminate\Http\Request;
-use Illuminate\Http\Response;
 use Illuminate\Validation\ValidationException;
 use Symfony\Component\HttpKernel\Exception\HttpException;
 use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
@@ -26,6 +25,7 @@ class Handler extends ExceptionHandler
         HttpException::class,
         ModelNotFoundException::class,
         ValidationException::class,
+        NotFoundException::class,
     ];
 
     /**