Skip to content

Commit e596226

Browse files
[8.x] Add accepted_if validation rule (laravel#5658)
* Add accepted_if validation rule * Update validation.php Co-authored-by: Taylor Otwell <taylor@laravel.com>
1 parent 82b5135 commit e596226

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

resources/lang/en/validation.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
*/
1515

1616
'accepted' => 'The :attribute must be accepted.',
17+
'accepted_if' => 'The :attribute must be accepted when :other is :value.',
1718
'active_url' => 'The :attribute is not a valid URL.',
1819
'after' => 'The :attribute must be a date after :date.',
1920
'after_or_equal' => 'The :attribute must be a date after or equal to :date.',

0 commit comments

Comments
 (0)