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;
    }
Was this page helpful?