Skip to content

Commit

Permalink
Merge pull request laravel#2169 from themsaid/document-distinct-rule
Browse files Browse the repository at this point in the history
Document the distinct validation rule
  • Loading branch information
taylorotwell committed Feb 26, 2016
2 parents 3ad86e2 + 6556840 commit f100031
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions validation.md
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,8 @@ Below is a list of all available validation rules and their function:
[Date Format](#rule-date-format)
[Different](#rule-different)
[Digits](#rule-digits)
[Digits Between](#rule-digits-between)
[Digits Between](#rule-digits-between)
[Distinct](#rule-distinct)
[E-Mail](#rule-email)
[Exists (Database)](#rule-exists)
[Filled](#rule-filled)
Expand Down Expand Up @@ -605,7 +606,14 @@ The field under validation must be _numeric_ and must have an exact length of _v
<a name="rule-digits-between"></a>
#### digits_between:_min_,_max_

The field under validation must have a length between the given _min_ and _max_.
The field under validation must have a length between the given _min_ and _max_.

<a name="rule-distinct"></a>
#### distinct

When working with arrays, the field under validation must have unique values.

'foo.*.id' => 'distinct'

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

0 comments on commit f100031

Please sign in to comment.