class Authorize (View source)

Methods

void
__construct( Gate $gate)

Create a new middleware instance.

mixed
handle( Request $request, Closure $next, string $ability, string|null $model = null)

Handle an incoming request.

Details

at line line 23
void __construct( Gate $gate)

Create a new middleware instance.

Parameters

Gate $gate

Return Value

void

at line line 39
mixed handle( Request $request, Closure $next, string $ability, string|null $model = null)

Handle an incoming request.

Parameters

Request $request
Closure $next
string $ability
string|null $model

Return Value

mixed

Exceptions

AuthorizationException