refactor(trait): mengeluarkan WithOutletSelector dari folder Voucher dan menyesuiakan path nya di voucher

This commit is contained in:
Yoga Pangestu 2025-10-01 20:38:51 +07:00
parent fd1348baaa
commit 20f393d326
3 changed files with 2 additions and 18 deletions

View File

@ -4,7 +4,7 @@
use App\Livewire\Forms\VoucherForm;
use App\Models\Outlet;
use App\Traits\Voucher\WithOutletSelector;
use App\Traits\WithOutletSelector;
use App\Traits\WithUpdatedData;
use Flux\Flux;
use Livewire\Attributes\Title;

View File

@ -5,7 +5,7 @@
use App\Livewire\Forms\VoucherForm;
use App\Models\Outlet;
use App\Models\Voucher;
use App\Traits\Voucher\WithOutletSelector;
use App\Traits\WithOutletSelector;
use App\Traits\WithUpdatedData;
use Flux\Flux;
use Livewire\Attributes\Title;

View File

@ -1,16 +0,0 @@
<?php
namespace App\Traits\Voucher;
trait WithOutletSelector
{
public function selectAll()
{
$this->form->outlet_ids = array_keys($this->outlets);
}
public function deselectAll()
{
$this->form->outlet_ids = [];
}
}