trait AuthorizesResources (View source)

Methods

authorizeResource( string $model, string|null $name = null, array $options = array(), Request|null $request = null)

Authorize a resource action based on the incoming request.

Details

at line line 18
ControllerMiddlewareOptions authorizeResource( string $model, string|null $name = null, array $options = array(), Request|null $request = null)

Authorize a resource action based on the incoming request.

Parameters

string $model
string|null $name
array $options
Request|null $request

Return Value

ControllerMiddlewareOptions