diff --git a/app/Http/Requests/Projects/CreateRequest.php b/app/Http/Requests/Projects/CreateRequest.php index eccd8a5..a0a7bf6 100644 --- a/app/Http/Requests/Projects/CreateRequest.php +++ b/app/Http/Requests/Projects/CreateRequest.php @@ -43,8 +43,8 @@ class CreateRequest extends Request public function messages() { return [ - 'customer_name.required_without' => 'Nama Customer Wajib diisi.', - 'customer_email.required_without' => 'Email Customer Wajib diisi.', + 'customer_name.required_without' => __('validation.project.customer_name.required_without'), + 'customer_email.required_without' => __('validation.project.customer_email.required_without'), ]; } } diff --git a/resources/lang/de/validation.php b/resources/lang/de/validation.php index edd1862..84fcd14 100644 --- a/resources/lang/de/validation.php +++ b/resources/lang/de/validation.php @@ -90,9 +90,12 @@ return [ | */ - 'custom' => [ - 'attribute-name' => [ - 'rule-name' => 'custom-message', + 'project' => [ + 'customer_name' => [ + 'required_without' => 'Customer name is required.', + ], + 'customer_email' => [ + 'required_without' => 'Customer email is required.', ], ], diff --git a/resources/lang/en/validation.php b/resources/lang/en/validation.php index b99d665..8adb8c8 100644 --- a/resources/lang/en/validation.php +++ b/resources/lang/en/validation.php @@ -90,9 +90,12 @@ return [ | */ - 'custom' => [ - 'attribute-name' => [ - 'rule-name' => 'custom-message', + 'project' => [ + 'customer_name' => [ + 'required_without' => 'Customer name is required.', + ], + 'customer_email' => [ + 'required_without' => 'Customer email is required.', ], ], diff --git a/resources/lang/id/validation.php b/resources/lang/id/validation.php index 5a98262..8f14060 100644 --- a/resources/lang/id/validation.php +++ b/resources/lang/id/validation.php @@ -90,9 +90,12 @@ return [ | */ - 'custom' => [ - 'attribute-name' => [ - 'rule-name' => 'custom-message', + 'project' => [ + 'customer_name' => [ + 'required_without' => 'Nama customer wajib diisi.', + ], + 'customer_email' => [ + 'required_without' => 'Email customer wajib diisi.', ], ],