|
19 | 19 | use Milwad\LaravelValidate\Utils\CountryPhoneValidator\ZHPhoneValidator; |
20 | 20 |
|
21 | 21 | return [ |
| 22 | +/* |
| 23 | + * Mapping of country codes to their respective phone number validator classes. |
| 24 | + * Each validator enforces country-specific phone number formatting and validation rules. |
| 25 | + * |
| 26 | + * You can add custom country phone validator. |
| 27 | + */ |
22 | 28 | 'phone-country' => [ |
23 | | - 'DE' => DEPhoneValidator::class, |
24 | | - 'EN' => ENPhoneValidator::class, |
25 | | - 'ES' => ESPhoneValidator::class, |
26 | | - 'FR' => FRPhoneValidator::class, |
27 | | - 'GR' => GRPhoneValidator::class, |
28 | | - 'ID' => IDPhoneValidator::class, |
29 | | - 'IN' => INPhoneValidator::class, |
30 | | - 'IR' => IRPhoneValidator::class, |
31 | | - 'IT' => ITPhoneValidator::class, |
32 | | - 'JA' => JAPhoneValidator::class, |
33 | | - 'KO' => KOPhoneValidator::class, |
34 | | - 'NE' => NEPhoneValidator::class, |
35 | | - 'RU' => RUPhoneValidator::class, |
36 | | - 'SA' => SAPhoneValidator::class, |
37 | | - 'SE' => SEPhoneValidator::class, |
38 | | - 'TR' => TRPhoneValidator::class, |
39 | | - 'ZH' => ZHPhoneValidator::class, |
| 29 | + 'DE' => DEPhoneValidator::class, // Germany |
| 30 | + 'EN' => ENPhoneValidator::class, // England |
| 31 | + 'ES' => ESPhoneValidator::class, // Spain |
| 32 | + 'FR' => FRPhoneValidator::class, // France |
| 33 | + 'GR' => GRPhoneValidator::class, // Greece |
| 34 | + 'ID' => IDPhoneValidator::class, // Indonesia |
| 35 | + 'IN' => INPhoneValidator::class, // India |
| 36 | + 'IR' => IRPhoneValidator::class, // Iran |
| 37 | + 'IT' => ITPhoneValidator::class, // Italy |
| 38 | + 'JA' => JAPhoneValidator::class, // Japan |
| 39 | + 'KO' => KOPhoneValidator::class, // South Korea |
| 40 | + 'NE' => NEPhoneValidator::class, // Netherlands |
| 41 | + 'RU' => RUPhoneValidator::class, // Russia |
| 42 | + 'SA' => SAPhoneValidator::class, // Saudi Arabia |
| 43 | + 'SE' => SEPhoneValidator::class, // Sweden |
| 44 | + 'TR' => TRPhoneValidator::class, // Turkey |
| 45 | + 'ZH' => ZHPhoneValidator::class, // China |
40 | 46 | ], |
41 | 47 | ]; |
0 commit comments