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:
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:
The Notification is sent using:
$user->notify(new OrderCreatedNotification($order));
I attached some screenshots to add more context:
* The completed job BroadcastNotificationCreated
after broadcasting the Filament Notification
* The websocket connection from Chrome dev tools1 Reply
It works when I add the trait
BroadcastsEvents
and the broadcastOn()
method to the OrderCreatedNotification
class:
But this is not documented anywhere in Laravel, so I doubt this really is the correct solution...