© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•10mo ago•
6 replies
Dimitar

Table polling event/hook?

Hey, is there a event being emited or a Hook that we can attach some scripts when a table is polling?

The idea is when a new order with status new is present in the table to trigger a audio player sound;

How would that be implemented, I didnt found anything in the documentation in the Advanced Table section?
Solution
Its possible.

Just find a renderhook that is very close to the table and add
->poll(15)
->poll(15)
to the table:

php FilamentView::registerRenderHook(
            PanelsRenderHook::RESOURCE_PAGES_LIST_RECORDS_TABLE_BEFORE,
            fn (): string => Blade::render(
                <<<'blade'
                    @php session(['rerender' => (session('rerender') + 1)]);    @endphp
                    <div>
                        RENDER BEFOER TABLEE {{ session('rerender') }}
                    </div>
                blade
            )
        );
php FilamentView::registerRenderHook(
            PanelsRenderHook::RESOURCE_PAGES_LIST_RECORDS_TABLE_BEFORE,
            fn (): string => Blade::render(
                <<<'blade'
                    @php session(['rerender' => (session('rerender') + 1)]);    @endphp
                    <div>
                        RENDER BEFOER TABLEE {{ session('rerender') }}
                    </div>
                blade
            )
        );


Then you can add another hook to the body to render some static html or js code;
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Table Polling
FilamentFFilament / ❓┊help
14mo ago
502 Bad Gateway Table polling
FilamentFFilament / ❓┊help
13mo ago
Custom Table Action and polling
FilamentFFilament / ❓┊help
13mo ago
Dispatch event in lifecycle hook
FilamentFFilament / ❓┊help
2y ago