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>
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server