[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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,6 +14,7 @@ return [
*/
'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.',
'after' => 'The :attribute must be a date after :date.',
'after_or_equal' => 'The :attribute must be a date after or equal to :date.',