1 | <?php |
||
8 | class GateCallback extends Callback |
||
9 | { |
||
10 | /** |
||
11 | * @var \Illuminate\Contracts\Auth\Access\Gate |
||
12 | */ |
||
13 | protected $gate; |
||
14 | |||
15 | /** |
||
16 | * @param array $specs Specification for the callback to be called |
||
17 | * @param \Illuminate\Contracts\Auth\Access\Gate $gate The service container that will be used to resolve the callable |
||
18 | */ |
||
19 | public function __construct(array $specs, Gate $gate) |
||
29 | |||
30 | /** |
||
31 | * Check if the abilities are allowed against the gate. |
||
32 | * |
||
33 | * @return bool |
||
34 | */ |
||
35 | public function check() |
||
39 | } |
||
40 |