added double validation message
This commit is contained in:
parent
cd00f26db9
commit
0ce1eebd31
|
|
@ -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]) . ' ';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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.',
|
||||
|
|
|
|||
Loading…
Reference in New Issue