© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
3 replies
momostafa

How to save Reverb Broadcasted notifications to database?

Hi,
I am using Reverb Broadcast and below code sends and displays broadcasted notification properly on the frontend but it is not saved on default notification database for later viewing like when using notification database method. how to save notifications to database when using broadcast method?

       $title = $data['title'];
            $message = $data['message'];
            $user = auth()->user();
            $url = $data['url'];

            $user->notify(
                Notification::make()
                ->success()
                ->title($title)
                ->body($message)
                ->persistent()
                ->actions([
                Action::make('View')
                    ->button()
                    ->url($url),
                ])
                ->toBroadcast(),
            );
       $title = $data['title'];
            $message = $data['message'];
            $user = auth()->user();
            $url = $data['url'];

            $user->notify(
                Notification::make()
                ->success()
                ->title($title)
                ->body($message)
                ->persistent()
                ->actions([
                Action::make('View')
                    ->button()
                    ->url($url),
                ])
                ->toBroadcast(),
            );

Thanks for your help and support
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

Broadcasted Notifications are completed in Horizon, but not received by Reverb
FilamentFFilament / ❓┊help
2y ago
Database notifications
FilamentFFilament / ❓┊help
2y ago
Pop up notifications with broadcast with reverb
FilamentFFilament / ❓┊help
8mo ago
Database notifications toast
FilamentFFilament / ❓┊help
3mo ago