From fb1f44992333abe4ad952f66308f51b3bdb0f185 Mon Sep 17 00:00:00 2001 From: Yoga Pangestu Date: Mon, 6 Oct 2025 19:13:01 +0700 Subject: [PATCH] feat(trait): membuat WithUserSelector untuk keperluan input yang ada user nya --- app/Traits/WithUserSelector.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 app/Traits/WithUserSelector.php diff --git a/app/Traits/WithUserSelector.php b/app/Traits/WithUserSelector.php new file mode 100644 index 0000000..f05a0f5 --- /dev/null +++ b/app/Traits/WithUserSelector.php @@ -0,0 +1,16 @@ +form->user_ids = array_keys($this->users); + } + + public function deselectAllUsers() + { + $this->form->user_ids = []; + } +}