Max size upload file

This commit is contained in:
ivan-sim
2024-02-06 10:27:06 +07:00
parent 826d4eb2a3
commit 975cd46f58
6 changed files with 17 additions and 7 deletions

View File

@@ -3,7 +3,7 @@
return [
'success' => 'Request has been successfully processed.',
'server_error' => 'Internal server error.',
'not_found' => 'Data not found',
'not_found' => 'Data not found.',
'password' => 'Password wrong. Please try again.',
'read_notification' => 'Notification has been read.',
'already_exists' => 'Data already exists.',

View File

@@ -3,6 +3,8 @@
return [
'required' => 'The :attribute field is required.',
'invalid' => 'The :attribute field is invalid.',
'max' => ':attribute cannot exceed :length characters.',
'max' => [
'file' => ':attribute max size is :max.',
],
'email' => 'Invalid email format.'
];

View File

@@ -3,6 +3,8 @@
return [
'required' => 'Kolom :attribute harus diisi.',
'invalid' => 'Kolom :attribute tidak valid.',
'max' => ':attribute tidak boleh melebihi :length karakter.',
'max' => [
'file' => ':attribute tidak boleh melebihi :max.',
],
'email' => 'Format email salah.'
];