trait Illuminate / Auth / Access / HandlesAuthorization
You are viewing an older version of the documentation. For the latest, please visit master documentation.

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