File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -490,7 +490,8 @@ Below is a list of all available validation rules and their function:
490
490
[ Date Format] ( #rule-date-format )
491
491
[ Different] ( #rule-different )
492
492
[ Digits] ( #rule-digits )
493
- [ Digits Between] ( #rule-digits-between )
493
+ [ Digits Between] ( #rule-digits-between )
494
+ [ Distinct] ( #rule-distinct )
494
495
[ E-Mail] ( #rule-email )
495
496
[ Exists (Database)] ( #rule-exists )
496
497
[ Filled] ( #rule-filled )
@@ -605,7 +606,14 @@ The field under validation must be _numeric_ and must have an exact length of _v
605
606
<a name =" rule-digits-between " ></a >
606
607
#### digits_between:_ min_ ,_ max_
607
608
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'
609
617
610
618
<a name =" rule-email " ></a >
611
619
#### email
You can’t perform that action at this time.
0 commit comments