From 0ae236d2ca7ede232dd9b76a61019211183e03cf Mon Sep 17 00:00:00 2001 From: Yoga Pangestu Date: Fri, 14 Nov 2025 10:46:31 +0700 Subject: [PATCH] fix(validation attribute): menyesuaikan yang multiple --- app/Livewire/Forms/Studio/Finance/PayrollForm.php | 1 + app/Livewire/Forms/Studio/Loyalty/VoucherForm.php | 2 ++ app/Livewire/Forms/Studio/Master/UserForm.php | 2 ++ 3 files changed, 5 insertions(+) diff --git a/app/Livewire/Forms/Studio/Finance/PayrollForm.php b/app/Livewire/Forms/Studio/Finance/PayrollForm.php index defe26c..19618f3 100644 --- a/app/Livewire/Forms/Studio/Finance/PayrollForm.php +++ b/app/Livewire/Forms/Studio/Finance/PayrollForm.php @@ -36,6 +36,7 @@ public function validationAttributes(): array { return [ 'user_ids' => 'pegawai', + 'user_ids.*' => 'pegawai', 'type' => 'tipe', 'description' => 'keterangan', 'amount' => 'jumlah', diff --git a/app/Livewire/Forms/Studio/Loyalty/VoucherForm.php b/app/Livewire/Forms/Studio/Loyalty/VoucherForm.php index a176ce7..54409b3 100644 --- a/app/Livewire/Forms/Studio/Loyalty/VoucherForm.php +++ b/app/Livewire/Forms/Studio/Loyalty/VoucherForm.php @@ -85,6 +85,8 @@ public function validationAttributes(): array 'discount_amount' => 'Jumlah Diskon', 'start_date' => 'tanggal mulai', 'end_date' => 'tanggal selesai', + 'outlet_ids' => 'outlet', + 'outlet_ids.*' => 'outlet', ]; } diff --git a/app/Livewire/Forms/Studio/Master/UserForm.php b/app/Livewire/Forms/Studio/Master/UserForm.php index 4864e5b..878abe0 100644 --- a/app/Livewire/Forms/Studio/Master/UserForm.php +++ b/app/Livewire/Forms/Studio/Master/UserForm.php @@ -75,7 +75,9 @@ public function validationAttributes(): array 'address' => 'alamat', 'gender' => 'jenis kelamin', 'outlet_ids' => 'outlet', + 'outlet_ids.*' => 'outlet', 'role_ids' => 'peran', + 'role_ids.*' => 'peran', ]; }