From dc35b6f63cd99696091fba24ca75181b6fe54b2d Mon Sep 17 00:00:00 2001 From: Yoga Pangestu Date: Mon, 17 Nov 2025 15:26:08 +0700 Subject: [PATCH] fic(voucher): cleanup availabel_count --- app/Livewire/Forms/Studio/Loyalty/VoucherForm.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Livewire/Forms/Studio/Loyalty/VoucherForm.php b/app/Livewire/Forms/Studio/Loyalty/VoucherForm.php index 54409b3..b241c49 100644 --- a/app/Livewire/Forms/Studio/Loyalty/VoucherForm.php +++ b/app/Livewire/Forms/Studio/Loyalty/VoucherForm.php @@ -115,7 +115,7 @@ public function store() $this->validate(); $data = $this->prepareSavedData(); - $data = sanitizeIntegers($data, ['min_purchase', 'max_discount', 'quota', 'limit_per_user']); + $data = sanitizeIntegers($data, ['min_purchase', 'max_discount', 'quota', 'limit_per_user', 'available_count']); DB::transaction(function () use ($data) { $voucher = Voucher::create($data);