Total Complexity | 4 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
10 | class VerifyLevel |
||
11 | { |
||
12 | /** |
||
13 | * @var Guard |
||
14 | */ |
||
15 | protected $auth; |
||
16 | |||
17 | /** |
||
18 | * Create a new filter instance. |
||
19 | * |
||
20 | * @param Guard $auth |
||
21 | */ |
||
22 | public function __construct(Guard $auth) |
||
23 | { |
||
24 | $this->auth = $auth; |
||
25 | } |
||
26 | |||
27 | /** |
||
28 | * Handle an incoming request. |
||
29 | * |
||
30 | * @param Request $request |
||
31 | * @param \Closure $next |
||
32 | * @param int $level |
||
33 | * |
||
34 | * @throws \jeremykenedy\LaravelRoles\App\Exceptions\LevelDeniedException |
||
35 | * |
||
36 | * @return mixed |
||
37 | */ |
||
38 | public function handle($request, Closure $next, $level) |
||
45 | } |
||
46 | } |
||
47 |