F
Filament2y ago
Meta

Notification Bell and Doesn't Show

Why the notification bell doesn't show? here's all i have done in my code config
'database' => [
'enabled' => true,
'trigger' => 'vendor/filament/components/layouts/app/topbar/database-notifications-trigger.blade',
'polling_interval' => '5s',
],
'database' => [
'enabled' => true,
'trigger' => 'vendor/filament/components/layouts/app/topbar/database-notifications-trigger.blade',
'polling_interval' => '5s',
],
i have follow and install all dependencies like
"filament/notifications": "^2.0",
"filament/notifications": "^2.0",
and all javascript dependencies, what am i missing?
22 Replies
krekas
krekas2y ago
have you put in where it should be shown?
Thijmen
Thijmen2y ago
If you don't have the admin panel you should follow this page: https://filamentphp.com/docs/2.x/notifications/installation
Filament
Installation - Notifications - Filament
Elegant TALL stack notifications for Laravel artisans.
Meta
MetaOP2y ago
i use the admin panel, but still doesn't show anything
Dan Harrin
Dan Harrin2y ago
i dont think the trigger is right
Dan Harrin
Dan Harrin2y ago
Filament
Notifications - Admin Panel - Filament
The elegant TALL stack admin panel for Laravel artisans.
Dan Harrin
Dan Harrin2y ago
in config/filament.php
Meta
MetaOP2y ago
thanks that's working, im confusing with the config notification.php we have database notification there too but its working now with this. thanks
Dan Harrin
Dan Harrin2y ago
config/notifications.php is for notifications outside the admin panel
Gianmarco Varrone
Without opening a new discussion. I'm having the same issue and followed the reference on the docs. I can't see any reference to the "trigger" option and I'm not understanding how to show the notification bell in the top bar.
Dan Harrin
Dan Harrin2y ago
which config file are you looking in
Gianmarco Varrone
For the admin panel there is no trigger mentioned in the docs, for the notification config there's a trigger option should i Import the notifications config? In my filament config I have the following: /* |-------------------------------------------------------------------------- | Database notifications |-------------------------------------------------------------------------- | | By enabling this feature, your users are able to open a slide-over within | the admin panel to view their database notifications. | */ 'database' => [ 'enabled' => true, 'polling_interval' => '30s', ],
Dan Harrin
Dan Harrin2y ago
you dont need to specify the trigger if you are using the admin panel that is enough if you enable it in config/filament
Gianmarco Varrone
Ok I have done so that was what i understood from docs, but nothing is showing in my top bar and also, I have created a notifications table and notifications are not being inserted even if there are no errors thrown
Dan Harrin
Dan Harrin2y ago
i dont know then, but it works in the demo so it must be something on your end
Gianmarco Varrone
Or maybe something missing in the docs.
Dan Harrin
Dan Harrin2y ago
i dont think so because otherwise other people would have reported it the original poster of this thread got it resolved fine
Gianmarco Varrone
Got the error, in the filament config file you publish at installation is stated so |-------------------------------------------------------------------------- | Database notifications |-------------------------------------------------------------------------- | | By enabling this feature, your users are able to open a slide-over within | the admin panel to view their database notifications. | */ 'database' => [ 'enabled' => false, 'polling_interval' => '30s', ], But this is not completely true as to show the bell element on top bar you should add 'database_notifications' => [ 'enabled' => true, ],
moaaz_m_f
moaaz_m_f2y ago
'database' => [ 'enabled' => false, 'polling_interval' => '30s', ], this part is in the notifications.php config file not in the filament config. If you are using the admin panel, you should use the filament.php config which has database_notifications
Gianmarco Varrone
Well, I don't know why but in my case this was the filament.php file.
moaaz_m_f
moaaz_m_f2y ago
so it's working now ?
Gianmarco Varrone
Yes with database_notifications everything is working properly.
Dan Harrin
Dan Harrin2y ago
glad you got it sorted, but the admin panel docs do state that you should use the admin panel config. and i even said it was config/filament.php not config/notifications

Did you find this page helpful?