PHP Class Vinkla\Shield\ShieldMiddleware

Author: Vincent Klaiber ([email protected])
Show file Open project: vinkla/laravel-shield

Protected Properties

Property Type Description
$shield Shield The shield instance.

Public Methods

Method Description
__construct ( Shield $shield ) : void Create a new shield middleware class.
handle ( Illuminate\Http\Request $request, Closure $next, string $user = null ) : mixed Handle an incoming request.

Method Details

__construct() public method

Create a new shield middleware class.
public __construct ( Shield $shield ) : void
$shield Shield
return void

handle() public method

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

Property Details

$shield protected property

The shield instance.
protected Shield,Vinkla\Shield $shield
return Shield