From c90729508a1d21cc13c29d91a57247efcd2e2567 Mon Sep 17 00:00:00 2001 From: Yoga Pangestu Date: Wed, 29 Oct 2025 10:31:11 +0700 Subject: [PATCH] feat(datatable): membuat polling untuk table real-time --- app/Traits/Datatable/WithConfiguration.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/Traits/Datatable/WithConfiguration.php b/app/Traits/Datatable/WithConfiguration.php index 597cdf6..ecb1246 100644 --- a/app/Traits/Datatable/WithConfiguration.php +++ b/app/Traits/Datatable/WithConfiguration.php @@ -57,5 +57,9 @@ public function configure(): void ->setPaginationEnabled(true) ->setDefaultPerPage(25) ->setPerPageAccepted([25, 50, 100, 1000]); + + if (property_exists($this, 'refreshTime') && $this->refreshTime !== null) { + $this->setRefreshTime($this->refreshTime); + } } }