From 33f74125b8f5c3c14a3c1886190f5d7a342aa4f5 Mon Sep 17 00:00:00 2001 From: Cristiano Fromagio Date: Wed, 4 Aug 2021 11:40:34 -0300 Subject: [PATCH 1/2] Add accepted_if validation rule --- resources/lang/en/validation.php | 1 + 1 file changed, 1 insertion(+) diff --git a/resources/lang/en/validation.php b/resources/lang/en/validation.php index 6100f808032..a4f0dbbbd91 100644 --- a/resources/lang/en/validation.php +++ b/resources/lang/en/validation.php @@ -14,6 +14,7 @@ */ 'accepted' => 'The :attribute must be accepted.', + 'accepted_if' => 'The :attribute field must be accepted when :other is :value.', 'active_url' => 'The :attribute is not a valid URL.', 'after' => 'The :attribute must be a date after :date.', 'after_or_equal' => 'The :attribute must be a date after or equal to :date.', From 291fcaa5cf647353d738570149f201ab9746ecf0 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Thu, 5 Aug 2021 08:45:37 -0500 Subject: [PATCH 2/2] Update validation.php --- resources/lang/en/validation.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/lang/en/validation.php b/resources/lang/en/validation.php index a4f0dbbbd91..6ee8d8d77af 100644 --- a/resources/lang/en/validation.php +++ b/resources/lang/en/validation.php @@ -14,7 +14,7 @@ */ 'accepted' => 'The :attribute must be accepted.', - 'accepted_if' => 'The :attribute field must be accepted when :other is :value.', + 'accepted_if' => 'The :attribute must be accepted when :other is :value.', 'active_url' => 'The :attribute is not a valid URL.', 'after' => 'The :attribute must be a date after :date.', 'after_or_equal' => 'The :attribute must be a date after or equal to :date.',