diff --git a/validation.md b/validation.md index 7642f3b6f1c..6929b957ffb 100644 --- a/validation.md +++ b/validation.md @@ -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) @@ -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. + +#### prohibited_if:_anotherfield_,_value_,... + +The field under validation must be empty or not present if the _anotherfield_ field is equal to any _value_. + + +#### prohibited_unless:_anotherfield_,_value_,... + +The field under validation must be empty or not present unless the _anotherfield_ field is equal to any _value_. + #### regex:_pattern_