8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4fc13f8 commit d1145bdCopy full SHA for d1145bd
src/Exceptions/Handler.php
@@ -111,7 +111,7 @@ public function render($request, Throwable $e)
111
} elseif ($e instanceof ModelNotFoundException) {
112
$e = new NotFoundHttpException($e->getMessage(), $e);
113
} elseif ($e instanceof AuthorizationException) {
114
- $e = new HttpException(403, $e->getMessage());
+ $e = new HttpException($e->status() ?? 403, $e->getMessage());
115
} elseif ($e instanceof ValidationException && $e->getResponse()) {
116
return $e->getResponse();
117
}
0 commit comments