PHP Class App\Http\Middleware\CheckRole

Mostrar archivo Open project: ant-vel/antVel

Public Methods

Method Description
handle ( Illuminate\Http\Request $request, Closure $next ) : mixed Handle an incoming request.

Private Methods

Method Description
getRequiredRoleForRoute ( string/array $route ) : boolean Obtiene los roles requeridos por la ruta.

Method Details

handle() public method

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