You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 18, 2022. It is now read-only.
I can`t catch Bican\Roles\Exceptions\AccessDeniedException in Handler.php
use Bican\Roles\Exceptions\AccessDeniedException as AccessDeniedException;
public function render($request, Exception $e)
{
die('sww');
if ($e instanceof AccessDeniedException) {
echo 'ss';die();
}
die('a');
return parent::render($request, 'ss');
}
but postman shows:
{
"message": "You don't have a required ['admin'] role.",
"status_code": 500,
}
I have registered middeleware in router, How to catch Bican\Roles\Exceptions\AccessDeniedException in Handler.php
The text was updated successfully, but these errors were encountered:
dmodaii
changed the title
catch these exceptions inside app/Exceptions/Handler.php
catch exceptions inside app/Exceptions/Handler.php
Sep 5, 2016
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I can`t catch Bican\Roles\Exceptions\AccessDeniedException in Handler.php
but postman shows:
I have registered middeleware in router, How to catch Bican\Roles\Exceptions\AccessDeniedException in Handler.php
The text was updated successfully, but these errors were encountered: