Skip to content

Commit

Permalink
Add prohibited_if and prohibited_unless documentation (#6898)
Browse files Browse the repository at this point in the history
  • Loading branch information
jessarcher authored Mar 10, 2021
1 parent 7e82e97 commit 5ec1ac5
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions validation.md
Original file line number Diff line number Diff line change
Expand Up @@ -717,6 +717,8 @@ Below is a list of all available validation rules and their function:
[Numeric](#rule-numeric)
[Password](#rule-password)
[Present](#rule-present)
[Prohibited If](#rule-prohibited-if)
[Prohibited Unless](#rule-prohibited-unless)
[Regular Expression](#rule-regex)
[Required](#rule-required)
[Required If](#rule-required-if)
Expand Down Expand Up @@ -1127,6 +1129,16 @@ The field under validation must match the authenticated user's password. You may

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

<a name="rule-prohibited-if"></a>
#### prohibited_if:_anotherfield_,_value_,...

The field under validation must be empty or not present if the _anotherfield_ field is equal to any _value_.

<a name="rule-prohibited-unless"></a>
#### prohibited_unless:_anotherfield_,_value_,...

The field under validation must be empty or not present unless the _anotherfield_ field is equal to any _value_.

<a name="rule-regex"></a>
#### regex:_pattern_

Expand Down

0 comments on commit 5ec1ac5

Please sign in to comment.