fic(voucher): cleanup availabel_count
This commit is contained in:
parent
5b41964f8e
commit
dc35b6f63c
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user