1 | <?php |
||
8 | class Authorized implements Rule |
||
9 | { |
||
10 | /** @var string */ |
||
11 | protected $ability; |
||
12 | |||
13 | /** @var array */ |
||
14 | protected $arguments; |
||
15 | |||
16 | /** @var string */ |
||
17 | protected $className; |
||
18 | |||
19 | /** @var string */ |
||
20 | protected $attribute; |
||
21 | |||
22 | 30 | /**@var string */ |
|
23 | protected $guard; |
||
24 | 30 | ||
25 | public function __construct(string $ability, string $className, string $guard = null) |
||
31 | 30 | ||
32 | public function passes($attribute, $value): bool |
||
46 | 6 | ||
47 | public function message(): string |
||
57 | } |
||
58 |