Skip to content

Commit 5ec1ac5

Browse files
authored
Add prohibited_if and prohibited_unless documentation (#6898)
1 parent 7e82e97 commit 5ec1ac5

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

validation.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -717,6 +717,8 @@ Below is a list of all available validation rules and their function:
717717
[Numeric](#rule-numeric)
718718
[Password](#rule-password)
719719
[Present](#rule-present)
720+
[Prohibited If](#rule-prohibited-if)
721+
[Prohibited Unless](#rule-prohibited-unless)
720722
[Regular Expression](#rule-regex)
721723
[Required](#rule-required)
722724
[Required If](#rule-required-if)
@@ -1127,6 +1129,16 @@ The field under validation must match the authenticated user's password. You may
11271129

11281130
The field under validation must be present in the input data but can be empty.
11291131

1132+
<a name="rule-prohibited-if"></a>
1133+
#### prohibited_if:_anotherfield_,_value_,...
1134+
1135+
The field under validation must be empty or not present if the _anotherfield_ field is equal to any _value_.
1136+
1137+
<a name="rule-prohibited-unless"></a>
1138+
#### prohibited_unless:_anotherfield_,_value_,...
1139+
1140+
The field under validation must be empty or not present unless the _anotherfield_ field is equal to any _value_.
1141+
11301142
<a name="rule-regex"></a>
11311143
#### regex:_pattern_
11321144

0 commit comments

Comments
 (0)