Using Filament Notification number in Frontpage notification icon

I just want to use the unread notification count to be used in bell icon present front end and when auth user clicks on it then is is routed dashbaord panel with notification sidebar open. Please help. I currently have filament dasbord with sliding bar notification panel in backend. How to proceed?
3 Replies
nanopanda
nanopanda2w ago
Are you using Laravel Database Notifications? See here: https://laravel.com/docs/11.x/notifications#accessing-the-notifications
Laravel - The PHP Framework For Web Artisans
Laravel is a PHP web application framework with expressive, elegant syntax. We’ve already laid the foundation — freeing you to create without sweating the small things.
LeandroFerreira
I think you can use auth()->user()->unreadNotifications->count() routed dashbaord panel with notification sidebar open try this in the LW component if you want to open the notification sidebar
$this->dispatch('open-modal', id: 'database-notifications');
$this->dispatch('open-modal', id: 'database-notifications');
Pritbor
Pritbor2w ago
thanks @Leandro Ferreira both do my job. thanks @nanopanda . I went thruogh this doc. just wanted filamentphp reusable options.