© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
4 replies
Matt Jenkins

Refresh a table when notification received

Is there any way to refresh a table when a broadcast notification is received?
Solution
So I realised I can listen for a broadcast notification on the resource list class and then do something to the table to refresh it. My solution was to just set the tableSearch to itself which seems to work but feels a bit hacky
    public function getListeners(): array
    {
        $user_id = auth()->user()->id;

        return [
            "echo-private:import.user.{$user_id},ImportComplete" => 'refreshTable'
        ];
    }

    public function refreshTable()
    {
        $this->tableSearch = $this->tableSearch;
    }
    public function getListeners(): array
    {
        $user_id = auth()->user()->id;

        return [
            "echo-private:import.user.{$user_id},ImportComplete" => 'refreshTable'
        ];
    }

    public function refreshTable()
    {
        $this->tableSearch = $this->tableSearch;
    }
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

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Show Filament notification when database notification is received
FilamentFFilament / ❓┊help
2y ago
Refresh a table
FilamentFFilament / ❓┊help
12mo ago
Refresh table
FilamentFFilament / ❓┊help
3y ago
Refresh Table
FilamentFFilament / ❓┊help
3y ago