© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
1 reply
Veur

Broadcasted Notifications are completed in Horizon, but not received by Reverb

I've installed and configured Laravel Reverb & Echo. It all works fine with traditional Laravel notification classes:
    public function toBroadcast(object $notifiable): BroadcastMessage
    {
        $data = [
            'order_id' => $this->order->id,
            'amount' => 123,
        ];
        
        return (new BroadcastMessage($data))->onConnection('sync');
    }
    public function toBroadcast(object $notifiable): BroadcastMessage
    {
        $data = [
            'order_id' => $this->order->id,
            'amount' => 123,
        ];
        
        return (new BroadcastMessage($data))->onConnection('sync');
    }


But when I try to send a Filament Notification, it doesn't work. The jobs are handled by the queue, but nothing happens in Reverb:
    public function toBroadcast(object $notifiable): BroadcastMessage
    {
        return \Filament\Notifications\Notification::make()
            ->title('Saved successfully')
            ->getBroadcastMessage();
    }
    public function toBroadcast(object $notifiable): BroadcastMessage
    {
        return \Filament\Notifications\Notification::make()
            ->title('Saved successfully')
            ->getBroadcastMessage();
    }


The Notification is sent using:
$user->notify(new OrderCreatedNotification($order));
$user->notify(new OrderCreatedNotification($order));


I attached some screenshots to add more context:
* The completed job
BroadcastNotificationCreated
BroadcastNotificationCreated
after broadcasting the Filament Notification
* The websocket connection from Chrome dev tools
Schermafbeelding_2024-07-09_om_13.52.02.png
Schermafbeelding_2024-07-09_om_13.54.12.png
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

How to save Reverb Broadcasted notifications to database?
FilamentFFilament / ❓┊help
2y ago
Notification not being send by reverb`
FilamentFFilament / ❓┊help
17mo ago
Filament v4 Notifications Not Broadcasting in Real-Time with Laravel Reverb
FilamentFFilament / ❓┊help
6mo ago
Notifications are only displayed by Refresh
FilamentFFilament / ❓┊help
3y ago