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

* Add accepted_if validation rule

* Update validation.php

Co-authored-by: Taylor Otwell <taylor@laravel.com>
This commit is contained in:
Cristiano Fromagio
2021-08-05 10:45:48 -03:00
committed by GitHub
parent 82b5135652
commit e5962266d7

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.',