UnauthorizedException class UnauthorizedException extends Exception
AuthorizationException class AuthorizationException extends
string __toString() Get the string representation of the message.
HandlesAuthorization trait HandlesAuthorization (
bool denies(string $ability, array|mixed $arguments = array()) Determine
$this before(callable $callback) Register a callback to run before all
bool allows(string $ability, array|mixed $arguments = array()) Determine
string|null message() Get the response message.
Gate class Gate implements
$this policy(string $class, string $policy) Define a policy class for a
Page 2 of 3