[8.x] Add accepted_if validation rule (#5658)

* Add accepted_if validation rule

* Update validation.php

Co-authored-by: Taylor Otwell <[email protected]>
This commit is contained in:
Cristiano Fromagio
2021-08-05 08:45:48 -05:00
committed by GitHub
co-authored by Taylor Otwell
parent 82b5135652
commit e5962266d7
+1
View File
@@ -14,6 +14,7 @@ return [
*/ */
'accepted' => 'The :attribute must be accepted.', 'accepted' => 'The :attribute must be accepted.',
'accepted_if' => 'The :attribute must be accepted when :other is :value.',
'active_url' => 'The :attribute is not a valid URL.', 'active_url' => 'The :attribute is not a valid URL.',
'after' => 'The :attribute must be a date after :date.', 'after' => 'The :attribute must be a date after :date.',
'after_or_equal' => 'The :attribute must be a date after or equal to :date.', 'after_or_equal' => 'The :attribute must be a date after or equal to :date.',