notifications are not added to the notification modal
i had an issue and i tried to run a clean system to check it.
laravel 11, filament v3.2, livewire.
i installed the filament panel, made the notiable trait in the user model, made a notification file, made a test route to try the notification and made a test custom page in filament that pulls the notifications for this user.
the custom page shows the notifications.
the notification indicator does not show any notifications and remains empty.
i dont know why.
any idea?
3 Replies
Did you add “databaseNotifications” method in panel provider?
Yes i did
i found the issue, not sure why it is happening.
to setup the entire notification operation i used the docs of filament.
the issue was in the file "vendor/filament/notifications/src/livewire/databasenotifications.php"
in line 86 we got
return $this->getUser()->notifications()->where('data->format', 'filament');
my problem was the data format, but i dont know how to change the notifications data format to filament or what that means.Run, did you try queue work? Check your queue driver. If it’s redis, database etc. you should run queue