added double validation message

This commit is contained in:
Cihan Şentürk 2024-04-25 12:20:44 +03:00 committed by GitHub
parent cd00f26db9
commit 0ce1eebd31
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View File

@ -210,7 +210,7 @@ abstract class Export implements FromCollection, HasLocalePreference, ShouldAuto
}
if (strpos($r, 'amount') !== false) {
$r = 'integer';
$r = 'double';
}
if (strpos($r, 'date_format') !== false) {
@ -227,7 +227,7 @@ abstract class Export implements FromCollection, HasLocalePreference, ShouldAuto
]) . ' ';
}
if (in_array($r, ['required', 'email', 'integer', 'unique', 'date_format'])) {
if (in_array($r, ['required', 'email', 'integer', 'unique', 'date_format', 'double'])) {
$prompt = $prompt . trans('validation.' . $r, ['attribute' => $value]) . ' ';
}
}

View File

@ -44,6 +44,7 @@ return [
'dimensions' => 'The :attribute has invalid image dimensions.',
'distinct' => 'The :attribute field has a duplicate value.',
'doesnt_start_with' => 'The :attribute may not start with one of the following: :values.',
'double' => 'The :attribute must be a valid double.',
'email' => 'The :attribute must be a valid email address.',
'ends_with' => 'The :attribute must end with one of the following: :values.',
'enum' => 'The selected :attribute is invalid.',