Skip to content

Commit

Permalink
Add documentation for present and filled validation rules
Browse files Browse the repository at this point in the history
  • Loading branch information
themsaid committed Feb 26, 2016
1 parent ba7a01d commit 4bc1ac4
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion validation.md
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,9 @@ Below is a list of all available validation rules and their function:
[Min](#rule-min)
[Not In](#rule-not-in)
[Numeric](#rule-numeric)
[Regular Expression](#rule-regex)
[Regular Expression](#rule-regex)
[Present](#rule-present)
[Filled](#rule-filled)
[Required](#rule-required)
[Required If](#rule-required-if)
[Required Unless](#rule-required-unless)
Expand Down Expand Up @@ -701,6 +703,16 @@ The field under validation must be numeric.
The field under validation must match the given regular expression.

**Note:** When using the `regex` pattern, it may be necessary to specify rules in an array instead of using pipe delimiters, especially if the regular expression contains a pipe character.

<a name="rule-present"></a>
#### Present

The field under validation must be present in the input data but can be empty.

<a name="rule-filled"></a>
#### Filled

The field under validation must be not empty only if it is present.

<a name="rule-required"></a>
#### required
Expand Down

0 comments on commit 4bc1ac4

Please sign in to comment.