Skip to content

Commit 84eaaf8

Browse files
committed
Update README.md
1 parent e6557b9 commit 84eaaf8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ Also, you can make <a href="https://github.com/milwad-dev/laravel-validate/pulls
163163
If you need to add a custom phone number validator for a specific country, follow the steps below.
164164

165165
### 1. Create Your Custom Validator Class
166+
166167
First, you need to create a custom validator class that implements the `Milwad\LaravelValidate\Utils\CountryPhoneValidator` contract. This contract ensures that your custom validator adheres to the required structure and functionality.
167168

168169
```php
@@ -185,7 +186,8 @@ class CustomPhoneValidator implements CountryPhoneValidator
185186
```
186187

187188
### 2. Add the Validator to the Configuration File
188-
Once you've created the custom validator class, add it to the configuration file (`config/phone-country.php`) under the `'phone-country'` array.
189+
190+
Once you've created the custom validator class, add it to the configuration file (`config/laravel-validate.php`) under the `'phone-country'` array.
189191

190192
For example, if you're adding a validator for the country `XY`:
191193

0 commit comments

Comments
 (0)