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.
No description
No description
No description
6 Replies
krekas
krekas11mo ago
you are using db notifications?
Sector
Sector11mo ago
if you using db notifications, are you created the notifications table in your db?
Supernova3339
Supernova3339OP10mo ago
yes, all that works perfectly just bumping this, this isn't very clear at all in the docs on how to accomplish this
Supernova3339
Supernova3339OP10mo ago
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.
Dennis Koch
Dennis Koch10mo ago
So the issue is solved? What's unclear in the docs if you don't use the proposed way? 🤔
Want results from more Discord servers?
Add your server