File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -1044,6 +1044,7 @@ Below is a list of all available validation rules and their function:
1044
1044
[ Contains] ( #rule-contains )
1045
1045
[ Distinct] ( #rule-distinct )
1046
1046
[ In Array] ( #rule-in-array )
1047
+ [ In Array Keys] ( #rule-in-array-keys )
1047
1048
[ List] ( #rule-list )
1048
1049
[ Max] ( #rule-max )
1049
1050
[ Min] ( #rule-min )
@@ -1771,6 +1772,15 @@ Validator::make($input, [
1771
1772
1772
1773
The field under validation must exist in _ anotherfield_ 's values.
1773
1774
1775
+ <a name =" rule-in-array-keys " ></a >
1776
+ #### in_array_keys:_ value_ .*
1777
+
1778
+ The field under validation must be an array having at least one of the given _ values_ as a key within the array:
1779
+
1780
+ ``` php
1781
+ 'config' => 'array|in_array_keys:timezone'
1782
+ ```
1783
+
1774
1784
<a name =" rule-integer " ></a >
1775
1785
#### integer
1776
1786
You can’t perform that action at this time.
0 commit comments