Notification Bell and Doesn't Show
Why the notification bell doesn't show?
here's all i have done in my code
config
i have follow and install all dependencies like
and all javascript dependencies, what am i missing?
22 Replies
have you put in where it should be shown?
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.
i use the admin panel, but still doesn't show anything
i dont think the trigger is right
use this config instead - https://filamentphp.com/docs/2.x/admin/notifications#database-notifications
Filament
Notifications - Admin Panel - Filament
The elegant TALL stack admin panel for Laravel artisans.
in config/filament.php
thanks that's working, im confusing with the config notification.php we have database notification there too
but its working now with this. thanks
config/notifications.php is for notifications outside the admin panel
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.
which config file are you looking in
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',
],
you dont need to specify the trigger if you are using the admin panel
that is enough if you enable it in config/filament
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
i dont know then, but it works in the demo so it must be something on your end
Or maybe something missing in the docs.
i dont think so because otherwise other people would have reported it
the original poster of this thread got it resolved fine
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,
],
'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
Well, I don't know why but in my case this was the filament.php file.
so it's working now ?
Yes with database_notifications everything is working properly.
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