This repository was archived by the owner on Jul 16, 2023. It is now read-only.
Commit 746c52a
committed
Allow subclass overriding of Validator
I want to be able to use Laravel's Validator's sometimes() feature with Ardent:
```
$v = Validator::make(...);
$v->sometimes('reason', 'required|max:500', function($input)
{
return $input->games >= 100;
});
```
Allowing subclass overriding of Ardent::makeValidator() seems the easiest way.1 parent 4d3b12d commit 746c52a
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
511 | 511 | | |
512 | 512 | | |
513 | 513 | | |
514 | | - | |
| 514 | + | |
515 | 515 | | |
516 | 516 | | |
517 | 517 | | |
| |||
0 commit comments