Skip to content

Commit

Permalink
Update validation.md with new rule paragraph
Browse files Browse the repository at this point in the history
The merged pull request laravel/framework#41691 adds a new `exlcude_with` validation rule in v9.0
  • Loading branch information
a-bashtannik authored Mar 29, 2022
1 parent 35feb42 commit 6fcecb2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions validation.md
Original file line number Diff line number Diff line change
Expand Up @@ -795,6 +795,7 @@ Below is a list of all available validation rules and their function:
[Exclude](#rule-exclude)
[Exclude If](#rule-exclude-if)
[Exclude Unless](#rule-exclude-unless)
[Exclude With](#rule-exclude-with)
[Exclude Without](#rule-exclude-without)
[Exists (Database)](#rule-exists)
[File](#rule-file)
Expand Down Expand Up @@ -1095,6 +1096,11 @@ The field under validation will be excluded from the request data returned by th

The field under validation will be excluded from the request data returned by the `validate` and `validated` methods unless _anotherfield_'s field is equal to _value_. If _value_ is `null` (`exclude_unless:name,null`), the field under validation will be excluded unless the comparison field is `null` or the comparison field is missing from the request data.

<a name="rule-exclude-with"></a>
#### exclude_with:_anotherfield_

The field under validation will be excluded from the request data returned by the `validate` and `validated` methods if the _anotherfield_ field is present.

<a name="rule-exclude-without"></a>
#### exclude_without:_anotherfield_

Expand Down

0 comments on commit 6fcecb2

Please sign in to comment.