If you want to override the exceptions thrown by this package, you can add them to the app/Exceptions/Handler.php
file. For example:
public function register()
{
$this->renderable(function (\Junges\ACL\Exceptions\UnauthorizedException $exception, $request) {
return response()->json([
'message' => 'Authorization failed.',
'status' => 403
]);
});
}
You can find all exceptions added by this package here.