mirror of
https://github.com/vlucas/valitron.git
synced 2025-12-30 23:01:52 +00:00
added "optional" rule
This commit is contained in:
parent
9636bfaf19
commit
bb181072f4
@ -133,6 +133,7 @@ V::lang('ar');
|
|||||||
* `contains` - Field is a string and contains the given string
|
* `contains` - Field is a string and contains the given string
|
||||||
* `creditCard` - Field is a valid credit card number
|
* `creditCard` - Field is a valid credit card number
|
||||||
* `instanceOf` - Field contains an instance of the given class
|
* `instanceOf` - Field contains an instance of the given class
|
||||||
|
* `optional` - Value does not need to be included in data array. If it is however, it must pass validation.
|
||||||
|
|
||||||
**NOTE**: If you are comparing floating-point numbers with min/max validators, you
|
**NOTE**: If you are comparing floating-point numbers with min/max validators, you
|
||||||
should install the [BCMath](http://us3.php.net/manual/en/book.bc.php)
|
should install the [BCMath](http://us3.php.net/manual/en/book.bc.php)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user