Authorize (Auth\Middleware)

Authorize

class Authorize (View source)

Methods

void __construct(Factory $auth, Gate $gate)

Create a new middleware instance.

mixed handle(Request $request, Closure $next, string $ability, array|null $models)

Handle an incoming request.

Details

void __construct(Factory $auth, Gate $gate)

Create a new middleware instance.

Parameters

Factory $auth
Gate $gate

Return Value

void

mixed handle(Request $request, Closure $next, string $ability, array|null $models)

Handle an incoming request.

Parameters

Request $request
Closure $next
string $ability
array|null $models

Return Value

mixed

Exceptions

AuthenticationException
AuthorizationException

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.3/Illuminate/Auth/Middleware/Authorize.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部