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 8d2eee2 commit 76ba543Copy full SHA for 76ba543
src/LaravelApiProblem.php
@@ -4,6 +4,7 @@
4
5
namespace Pedrosalpr\LaravelApiProblem;
6
7
+use Illuminate\Auth\Access\AuthorizationException;
8
use Illuminate\Http\JsonResponse;
9
use Illuminate\Http\Request;
10
use Illuminate\Http\Response;
@@ -32,6 +33,7 @@ public function __construct(
32
33
ValidationException::class => $this->validation(),
34
\UnhandledMatchError::class,\Exception::class => $this->default(),
35
HttpException::class => $this->default(419),
36
+ AuthorizationException::class => $this->default(403),
37
default => $this->default()
38
};
39
}
0 commit comments