1 | <?php |
||
9 | class PermissionValidator |
||
10 | { |
||
11 | /** |
||
12 | * Get the validator for an incoming create request. |
||
13 | * |
||
14 | * @param array $data The data to validate. |
||
15 | * |
||
16 | * @return \Illuminate\Validation\Validator |
||
17 | */ |
||
18 | public static function create(array $data): Validator |
||
29 | |||
30 | /** |
||
31 | * Get a validator for an incoming update request. |
||
32 | * |
||
33 | * @param array $data The data to validate. |
||
34 | * @param int $id The actual permission id to ignore the name rule. |
||
35 | * |
||
36 | * @return \Illuminate\Validation\Validator |
||
37 | */ |
||
38 | public static function update(array $data, int $id): Validator |
||
54 | } |
||
55 |