1 | <?php |
||
9 | class UserValidator |
||
10 | { |
||
11 | /** |
||
12 | * Get the validator for an incoming registration 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 |
||
34 | |||
35 | /** |
||
36 | * Get the validator for an incoming registration request with a social provider. |
||
37 | * |
||
38 | * @param array $data The data to validate. |
||
39 | * |
||
40 | * @return \Illuminate\Validation\Validator |
||
41 | */ |
||
42 | public static function createWithProvider(array $data): Validator |
||
51 | |||
52 | /** |
||
53 | * Get a validator for an incoming update request. (Administration) |
||
54 | * |
||
55 | * @param array $data The data to validate. |
||
56 | * @param int $id The actual user id to ignore the username rule. |
||
57 | * |
||
58 | * @return \Illuminate\Validation\Validator |
||
59 | */ |
||
60 | public static function update(array $data, int $id): Validator |
||
85 | |||
86 | /** |
||
87 | * Get the validator for an incoming email update request. |
||
88 | * |
||
89 | * @param array $data The data to validate. |
||
90 | * |
||
91 | * @return \Illuminate\Validation\Validator |
||
92 | */ |
||
93 | public static function updateEmail(array $data): Validator |
||
101 | |||
102 | /** |
||
103 | * Get the validator for an incoming password update request. |
||
104 | * |
||
105 | * @param array $data The data to validate. |
||
106 | * |
||
107 | * @return \Illuminate\Validation\Validator |
||
108 | */ |
||
109 | public static function updatePassword(array $data): Validator |
||
118 | } |
||
119 |