F
Filamentβ€’4mo ago
ChesterS

Show Filament notification when database notification is received

Is there a built in way to render/show a Filament notification when a database notification is received? For example let's say I have this code
Notification::make()
->title('Saved successfully')
->sendToDatabase($someUser);

event(new DatabaseNotificationsSent($someUser));
Notification::make()
->title('Saved successfully')
->sendToDatabase($someUser);

event(new DatabaseNotificationsSent($someUser));
Is there a built-in way to actually render that notification when $someUser receives it? So they would see the equivalent of
Notification::make()
->title('Saved successfully')
->send();
Notification::make()
->title('Saved successfully')
->send();
If not, is there a callback or some sort of hook/event that's triggered so I can do this manually? Thank you.
2 Replies
ChesterS
ChesterSOPβ€’4mo ago
@Brian Kidd Ah, yes, that's exactly what I need! Thank you! πŸ™‡
Want results from more Discord servers?
Add your server