From a7061ee9beac2c50ceff5f22e45b4f75c1350716 Mon Sep 17 00:00:00 2001 From: Andrew Brown Date: Thu, 9 May 2024 14:49:48 -0500 Subject: [PATCH] add documentation for new "contains" validation rule https://github.com/laravel/framework/pull/51348 --- validation.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/validation.md b/validation.md index 2154256744b..d31f5d714da 100644 --- a/validation.md +++ b/validation.md @@ -879,6 +879,7 @@ Below is a list of all available validation rules and their function: [Between](#rule-between) [Boolean](#rule-boolean) [Confirmed](#rule-confirmed) +[Contains](#rule-contains) [Current Password](#rule-current-password) [Date](#rule-date) [Date Equals](#rule-date-equals) @@ -1097,6 +1098,11 @@ The field under validation must be able to be cast as a boolean. Accepted input The field under validation must have a matching field of `{field}_confirmation`. For example, if the field under validation is `password`, a matching `password_confirmation` field must be present in the input. + +#### contains:_foo_,_bar_,... + +The field under validation must be an array that contains all given parameter values. + #### current_password