PHP Class Learner\Http\Middleware\MustHaveRole

ファイルを表示 Open project: RryLee/learner.video

Protected Properties

Property Type Description
$auth

Public Methods

Method Description
__construct ( Illuminate\Contracts\Auth\Guard $auth ) Creates a new instance of the middleware.
handle ( Illuminate\Http\Request $request, Closure $next, $roles ) : mixed Handle an incoming request.

Method Details

__construct() public method

Creates a new instance of the middleware.
public __construct ( Illuminate\Contracts\Auth\Guard $auth )
$auth Illuminate\Contracts\Auth\Guard

handle() public method

Handle an incoming request.
public handle ( Illuminate\Http\Request $request, Closure $next, $roles ) : mixed
$request Illuminate\Http\Request
$next Closure
$roles
return mixed

Property Details

$auth protected_oe property

protected $auth