added "optional" rule

This commit is contained in:
Willem Wollebrants 2016-03-15 22:14:19 +01:00
parent 9636bfaf19
commit bb181072f4

View File

@ -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)