1 | <?php |
||
9 | class RoleValidator |
||
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 |
||
31 | |||
32 | /** |
||
33 | * Get a validator for an incoming update request. |
||
34 | * |
||
35 | * @param array $data The data to validate. |
||
36 | * @param int $id The actual role id to ignore the name rule. |
||
37 | * |
||
38 | * @return \Illuminate\Validation\Validator |
||
39 | */ |
||
40 | public static function update(array $data, int $id): Validator |
||
58 | } |
||
59 |