trait Illuminate / Auth / Access / HandlesAuthorization
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.

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