You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$v->field('dob', 'date of birth')->date()->date_after('1998-01-01')->date_before('2002-12-31');
49
49
```
50
50
Make sure to run the field method on start of every method chain.
51
51
@@ -65,8 +65,9 @@ if(!$v->is_valid()){
65
65
Some methods to use
66
66
| Methods | Return | Description |
67
67
|--------|--------|-------------|
68
+
|`field(str $name, str? $alias)`| $this | Set the field name to start validation. <br/> param *string*`$name` - Name of the field/key as on data to validate. <br/> param *string*`$alias` - (optional) Alias use on error messages instead of field name. |
68
69
| `set_response_messages(arr $messages)` | void | Function to set/extend custom error. <br /> Use associative array of messages as the parameter. See the messages format on `Validator.php` file at line `20`.
69
-
| is_valid() | boolean | Check if all validations are successfull.
70
+
| `is_valid()` | boolean | Check if all validations are successfull.
70
71
71
72
Here is a list of the validators currently available.
0 commit comments