| 1 | <?php |
||
| 10 | class VerifyPermission |
||
| 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) |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Handle an incoming request. |
||
| 29 | * |
||
| 30 | * @param Request $request |
||
| 31 | * @param \Closure $next |
||
| 32 | * @param int|string $permission |
||
| 33 | * @return mixed |
||
| 34 | * @throws \Ultraware\Roles\Exceptions\PermissionDeniedException |
||
| 35 | */ |
||
| 36 | public function handle($request, Closure $next, $permission) |
||
| 44 | } |
||
| 45 |