class Authorize

Methods

Response
handle(Request $request, Closure $next)

Handle an incoming request.

bool
allows(Request $request)

The local environment is always allowed, since a failing gate would lock a developer out of their own devtools. Everywhere else access is granted only by the configured gate, which decides for the authenticated user.

Details

at line 17
Response handle(Request $request, Closure $next)

Handle an incoming request.

Parameters

Request $request
Closure $next

Return Value

Response

at line 31
protected bool allows(Request $request)

The local environment is always allowed, since a failing gate would lock a developer out of their own devtools. Everywhere else access is granted only by the configured gate, which decides for the authenticated user.

Parameters

Request $request

Return Value

bool