Skip to content

Commit 6556840

Browse files
committed
Document the distinct validation rule
1 parent 9895254 commit 6556840

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

validation.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,8 @@ Below is a list of all available validation rules and their function:
490490
[Date Format](#rule-date-format)
491491
[Different](#rule-different)
492492
[Digits](#rule-digits)
493-
[Digits Between](#rule-digits-between)
493+
[Digits Between](#rule-digits-between)
494+
[Distinct](#rule-distinct)
494495
[E-Mail](#rule-email)
495496
[Exists (Database)](#rule-exists)
496497
[Filled](#rule-filled)
@@ -605,7 +606,14 @@ The field under validation must be _numeric_ and must have an exact length of _v
605606
<a name="rule-digits-between"></a>
606607
#### digits_between:_min_,_max_
607608

608-
The field under validation must have a length between the given _min_ and _max_.
609+
The field under validation must have a length between the given _min_ and _max_.
610+
611+
<a name="rule-distinct"></a>
612+
#### distinct
613+
614+
When working with arrays, the field under validation must have unique values.
615+
616+
'foo.*.id' => 'distinct'
609617

610618
<a name="rule-email"></a>
611619
#### email

0 commit comments

Comments
 (0)