© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
1 reply
a.toma6

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>
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Undefined variable $isSearchOnBlur
FilamentFFilament / ❓┊help
2y ago
Undefined variable $component
FilamentFFilament / ❓┊help
2y ago
Undefined variable $getUploadingMessage
FilamentFFilament / ❓┊help
3y ago
Undefined variable $listLimit
FilamentFFilament / ❓┊help
3y ago