HandlesAuthorization
trait HandlesAuthorization (View source)
Methods
deny(string|null $message = null, mixed|null $code = null)
Throws an unauthorized exception.
denyWithStatus(int $status, string|null $message = null, int|null $code = null)
Deny with a HTTP status code.
denyAsNotFound(string|null $message = null, int|null $code = null)
Deny with a 404 HTTP status code.
Details
protected Response
allow(string|null $message = null, mixed $code = null)
Create a new access response.
protected Response
deny(string|null $message = null, mixed|null $code = null)
Throws an unauthorized exception.
Response
denyWithStatus(int $status, string|null $message = null, int|null $code = null)
Deny with a HTTP status code.
Response
denyAsNotFound(string|null $message = null, int|null $code = null)
Deny with a 404 HTTP status code.