Skip to content

Commit

Permalink
Merge pull request #5697 from ahinkle/patch-2
Browse files Browse the repository at this point in the history
[6.x] Validation Rules exclude_if, exclude_unless
  • Loading branch information
taylorotwell committed Jan 2, 2020
2 parents 8af968b + 41bec03 commit b98580c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions validation.md
Expand Up @@ -596,6 +596,8 @@ Below is a list of all available validation rules and their function:
[Distinct](#rule-distinct)
[E-Mail](#rule-email)
[Ends With](#rule-ends-with)
[Exclude If](#rule-exclude_if)
[Exclude Unless](#rule-exclude_unless)
[Exists (Database)](#rule-exists)
[File](#rule-file)
[Filled](#rule-filled)
Expand Down Expand Up @@ -800,6 +802,16 @@ The `filter` validator, which uses PHP's `filter_var` function under the hood, s

The field under validation must end with one of the given values.

<a name="rule-exclude-if"></a>
#### exclude_if:_anotherfield_,_value_

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

<a name="rule-exclude-unless"></a>
#### exclude_unless:_anotherfield_,_value_

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_.

<a name="rule-exists"></a>
#### exists:_table_,_column_

Expand Down

0 comments on commit b98580c

Please sign in to comment.