Skip to content

Commit f25bb47

Browse files
committed
wip
1 parent fef99d7 commit f25bb47

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

‎validation.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1044,6 +1044,7 @@ Below is a list of all available validation rules and their function:
10441044
[Contains](#rule-contains)
10451045
[Distinct](#rule-distinct)
10461046
[In Array](#rule-in-array)
1047+
[In Array Keys](#rule-in-array-keys)
10471048
[List](#rule-list)
10481049
[Max](#rule-max)
10491050
[Min](#rule-min)
@@ -1771,6 +1772,15 @@ Validator::make($input, [
17711772

17721773
The field under validation must exist in _anotherfield_'s values.
17731774

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+
17741784
<a name="rule-integer"></a>
17751785
#### integer
17761786

0 commit comments

Comments
 (0)