Authorize
class Authorize
Methods
static string
using(UnitEnum|string $ability, string ...$models)
Specify the ability and models for the middleware.
Response
array
bool
isClassName(string $value)
Check if the given string looks like a fully qualified class name.
Details
at line 23
__construct(Gate $gate)
Create a new middleware instance.
at line 31
static string
using(UnitEnum|string $ability, string ...$models)
Specify the ability and models for the middleware.
at line 42
Response
handle(Request $request, Closure $next, string $ability, Model|string ...$models)
Handle an incoming request.
at line 52
protected array
getGateArguments(Request $request, array $models)
Get the arguments parameter for the gate.
at line 63
protected mixed
getModel(Request $request, string $model)
Get the model to authorize.
at line 76
protected bool
isClassName(string $value)
Check if the given string looks like a fully qualified class name.