| Total Complexity | 3 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class Roles extends BaseMiddleware |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * Checks the entry of all of the specified roles. |
||
| 12 | * |
||
| 13 | * @param \Illuminate\Http\Request $request |
||
| 14 | * @param \Closure $next |
||
| 15 | * @param string ...$roles |
||
| 16 | * |
||
| 17 | * @throws \Helldar\Roles\Exceptions\Http\RoleAccessIsDeniedHttpException |
||
| 18 | * |
||
| 19 | * @return mixed |
||
| 20 | */ |
||
| 21 | 36 | public function handle($request, Closure $next, ...$roles) |
|
| 32 |