F
Filament9mo ago
Horia

Notifications not showing

I installed the Notifications package after the Tables, but my notifications are not showing. I get no errors in the console. Everything else works. Is there a way to debug? The js for notifications is loaded by Vite, in my page i have: <script src="http://flontaevents.test/js/filament/notifications/notifications.js?v=3.0.47.0" data-navigate-track></script> Any suggestions?
6 Replies
Patrick Boivin
Patrick Boivin9mo ago
Can you share some code to show what you've been trying? How are you sending the notifications?
Horia
Horia9mo ago
Notification::make() ->title('Invoice') ->body('Invoice was seved succesfully.') ->success() ->send();
Patrick Boivin
Patrick Boivin9mo ago
From which part of the app are you sending this notification?
wyChoong
wyChoong9mo ago
Did you setup the livewire component for the notifications
Horia
Horia9mo ago
I was missing @livewire('notifications') in my layout. Now everything works! Thanks!