@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | /** |
51 | 51 | * Check if the user has a role or roles. |
52 | 52 | * |
53 | - * @param int|string|array $role |
|
53 | + * @param string $role |
|
54 | 54 | * @param bool $all |
55 | 55 | * @return bool |
56 | 56 | */ |
@@ -218,7 +218,7 @@ discard block |
||
218 | 218 | /** |
219 | 219 | * Check if the user has a permission or permissions. |
220 | 220 | * |
221 | - * @param int|string|array $permission |
|
221 | + * @param string $permission |
|
222 | 222 | * @param bool $all |
223 | 223 | * @return bool |
224 | 224 | */ |
@@ -35,7 +35,7 @@ |
||
35 | 35 | */ |
36 | 36 | public function handle($request, Closure $next, ...$roles) |
37 | 37 | { |
38 | - foreach($roles as $role) { |
|
38 | + foreach ($roles as $role) { |
|
39 | 39 | if ($this->auth->check() && $this->auth->user()->hasRole($role)) { |
40 | 40 | return $next($request); |
41 | 41 | } |