From 76b9e99f02e0ba5c6ca34a68cfe836a7c022ffb1 Mon Sep 17 00:00:00 2001 From: Yoga Pangestu Date: Wed, 1 Oct 2025 20:42:27 +0700 Subject: [PATCH] refactor(trait): menambahkan suffix pada nama method WithOutletSelector --- app/Traits/WithOutletSelector.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 app/Traits/WithOutletSelector.php diff --git a/app/Traits/WithOutletSelector.php b/app/Traits/WithOutletSelector.php new file mode 100644 index 0000000..baa9dc2 --- /dev/null +++ b/app/Traits/WithOutletSelector.php @@ -0,0 +1,16 @@ +form->outlet_ids = array_keys($this->outlets); + } + + public function deselectAllOutlets() + { + $this->form->outlet_ids = []; + } +}