1 | <?php |
||
10 | class UserValidator |
||
11 | { |
||
12 | /** |
||
13 | * Get the validator for an incoming registration request. |
||
14 | * |
||
15 | * @param array $data The data to validate. |
||
16 | * |
||
17 | * @return \Illuminate\Validation\Validator |
||
18 | */ |
||
19 | public static function create(array $data): Validator |
||
35 | |||
36 | /** |
||
37 | * Get a validator for an incoming update request. (Administration) |
||
38 | * |
||
39 | * @param array $data The data to validate. |
||
40 | * @param int $id The actual user id to ignore the username rule. |
||
41 | * |
||
42 | * @return \Illuminate\Validation\Validator |
||
43 | */ |
||
44 | public static function update(array $data, int $id): Validator |
||
69 | |||
70 | /** |
||
71 | * Get the validator for an incoming email update request. |
||
72 | * |
||
73 | * @param array $data The data to validate. |
||
74 | * |
||
75 | * @return \Illuminate\Validation\Validator |
||
76 | */ |
||
77 | public static function updateEmail(array $data): Validator |
||
85 | |||
86 | /** |
||
87 | * Get the validator for an incoming password update request. |
||
88 | * |
||
89 | * @param array $data The data to validate. |
||
90 | * |
||
91 | * @return \Illuminate\Validation\Validator |
||
92 | */ |
||
93 | public static function updatePassword(array $data): Validator |
||
102 | } |
||
103 |