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

AuthorizationException

Extends

Properties

protected

$response Response

The response from the gate.

Default: null

Methods

public

__construct ( $message , $code , Throwable $previous ) : void

Create a new authorization exception instance.

Parameters

  • $message string|null
  • $code mixed
  • $previous Throwable |null
public

response ( ) : Response

Get the response from the gate.

public

setResponse ( $response ) : $this

Set the response from the gate.

Parameters

public

toResponse ( ) : Response

Create a deny response object from this exception.