trait
Illuminate
/
Auth
/
Access
/
HandlesAuthorization
HandlesAuthorization
Methods
protected
allow ( $message , $code ) : Response
Create a new access response.
Parameters
- $message string|null
- $code mixed
protected
deny ( $message , $code ) : Response
Throws an unauthorized exception.
Parameters
- $message string|null
- $code mixed|null
public
denyWithStatus ( $status , $message , $code ) : Response
Deny with a HTTP status code.
Parameters
- $status int
- $message string|null
- $code int|null
public
denyAsNotFound ( $message , $code ) : Response
Deny with a 404 HTTP status code.
Parameters
- $message string|null
- $code int|null