You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: validation.md
+19Lines changed: 19 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1042,6 +1042,7 @@ Below is a list of all available validation rules and their function:
1042
1042
[Array](#rule-array)
1043
1043
[Between](#rule-between)
1044
1044
[Contains](#rule-contains)
1045
+
[Doesnt Contain](#rule-doesnt-contain)
1045
1046
[Distinct](#rule-distinct)
1046
1047
[In Array](#rule-in-array)
1047
1048
[In Array Keys](#rule-in-array-keys)
@@ -1377,6 +1378,24 @@ Validator::make($data, [
1377
1378
]);
1378
1379
```
1379
1380
1381
+
<aname="rule-doesnt-contain"></a>
1382
+
#### doesnt_contain:_foo_,_bar_,...
1383
+
1384
+
The field under validation must be an array that does not contain any of the given parameter values. Since this rule often requires you to `implode` an array, the `Rule::doesntContain` method may be used to fluently construct the rule:
0 commit comments