Skip to content

Commit 65701df

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

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,13 @@ If you may use rules with string like `ValidPhone`, you need to change the confi
7171
'using_container' => false,
7272
```
7373

74+
If `using_container` is set to true, you might have rules like this:
75+
76+
```php
77+
'phone_number' => 'required|ValidPhone',
78+
```
79+
And `ValidPhone` would be a class that is resolved via the service container to check the validity of the phone number.
80+
7481
# Usage
7582

7683
You can use `Laravel-Validate Rules` very simply. You can use the `new` keyword before the rule name.

0 commit comments

Comments
 (0)