abstract class Driver

Methods

__construct(Closure $applicationResolver)

Construct a new driver.

bool
authorize(Request $request)

Authorize access for the request.

void
authorizeOrFail(Request $request)

Authorize access for the request or throw an exception.

bool
authorizeAccessingViaReverseProxies(Request $request)

Authorize accessing via reverse proxies.

bool
isPrivateIp(string $requestIp)

Check if an IPv4 or IPv6 address is contained in the list of private IP subnets.

app()

Get the application instance.

Details

at line 20
__construct(Closure $applicationResolver)

Construct a new driver.

Parameters

Closure $applicationResolver

at line 27
abstract bool authorize(Request $request)

Authorize access for the request.

Parameters

Request $request

Return Value

bool

at line 34
void authorizeOrFail(Request $request)

Authorize access for the request or throw an exception.

Parameters

Request $request

Return Value

void

Exceptions

AuthorizationException

at line 44
protected bool authorizeAccessingViaReverseProxies(Request $request)

Authorize accessing via reverse proxies.

Parameters

Request $request

Return Value

bool

at line 59
protected bool isPrivateIp(string $requestIp)

Check if an IPv4 or IPv6 address is contained in the list of private IP subnets.

Parameters

string $requestIp

Return Value

bool

at line 67
protected Application app()

Get the application instance.

Return Value

Application