Authorize
extends Authorize
in package
Table of Contents
- handle() : mixed
- Since the spatie/laravel-permission package doesn't allow natively to assign a role to a guest user this piece of middleware will intercept the request and execute the check manually.
Methods
handle()
Since the spatie/laravel-permission package doesn't allow natively to assign a role to a guest user this piece of middleware will intercept the request and execute the check manually.
public
handle(mixed $request, Closure $next, mixed $ability, mixed ...$models) : mixed
Parameters
- $request : mixed
- $next : Closure
- $ability : mixed
- $models : mixed