class Authorize (View source)
| protected Gate | $gate | The gate instance. |
| void | __construct(Gate $gate)
Create a new middleware instance. | |
| static string | using(string $ability, string ...$models)
Specify the ability and models for the middleware. | |
| mixed | handle(Request $request, Closure $next, string $ability, array|null ...$models)
Handle an incoming request. | |
| array | getGateArguments(Request $request, array|null $models)
Get the arguments parameter for the gate. | |
| Model|string | getModel(Request $request, string $model)
Get the model to authorize. | |
| bool | isClassName(string $value)
Checks if the given string looks like a fully qualified class name. |
Create a new middleware instance.
Specify the ability and models for the middleware.
Handle an incoming request.
Get the arguments parameter for the gate.
Checks if the given string looks like a fully qualified class name.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/11.x/Illuminate/Auth/Middleware/Authorize.html