-membuat tabel pivot -menyesuaikan seeder -menyesuaikan logika yang berkaitan dengan perubahan tersebut
17 lines
258 B
PHP
17 lines
258 B
PHP
<?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 = [];
|
|
}
|
|
}
|