Undefined variable $unreadNotificationsCount

I'm implementing database notification into a Laravel project (not in the Panel), the side modal woks, but i cannot acces the $unreadNotificationsCount variable to show the number of notifications unread. I've already added to the AppServiceProvider the trigger DatabaseNotifications::trigger('partials.notifications-button'); Any suggestions? This is the button code: <x-filament::icon-button icon="heroicon-m-bell"
wire:click="$dispatch('open-modal', { id: 'database-notifications' })" label="Notifications" > {{ $unreadNotificationsCount }} </x-filament::icon-button>
1 Reply
bernhard
bernhard2w ago
have you found a solution?
Want results from more Discord servers?
Add your server