refactor(trait): menambahkan suffix pada nama method WithOutletSelector
This commit is contained in:
parent
d1ee890918
commit
76b9e99f02
16
app/Traits/WithOutletSelector.php
Normal file
16
app/Traits/WithOutletSelector.php
Normal file
@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace App\Traits;
|
||||
|
||||
trait WithOutletSelector
|
||||
{
|
||||
public function selectAllOutlets()
|
||||
{
|
||||
$this->form->outlet_ids = array_keys($this->outlets);
|
||||
}
|
||||
|
||||
public function deselectAllOutlets()
|
||||
{
|
||||
$this->form->outlet_ids = [];
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user