Custom Notifications ( I don't know how to word this )
Hi, in my app I am wanting to show the amount of notifications a user has. My app isn't a panel, so this has to be done custom.
My current implementation doesn't show the amount of notifications, but the one Filament has does. From reading the documentation, I can't understand what it wants me to do, and trying to do what it wants me to do does nothing.
I am on the latest version of Filament ( v3.2.2 ) if that helps.
Mobile/Desktop views are attached as well as the view I am aiming to achieve. If necessary, I am happy to provide the code for my current implementation.
6 Replies
you are using db notifications?
if you using db notifications, are you created the notifications table in your db?
yes, all that works perfectly
just bumping this, this isn't very clear at all in the docs on how to accomplish this
You implemented the trigger button as shown here?
https://filamentphp.com/docs/3.x/notifications/database-notifications#overview
What's the code you used?
gave it a go, however don't like the way it does it. what it does is inserts the trigger view with the database notifications view. if there was a way to pass the variable and not show a view, would have a simple implementation
for now, what I am doing is counting the notifiable_id for the current user under the notifications table.
So the issue is solved? What's unclear in the docs if you don't use the proposed way? 🤔