© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
4 replies
athphane

Laravel Echo not working: Receiving Database Notifications via Websockets

Trying to set up echo/pusher to receiving notifications on the admin panel as described here:
https://filamentphp.com/docs/3.x/notifications/database-notifications#using-echo-to-receive-new-database-notifications-with-websockets

Added the
databaseNotifications()
databaseNotifications()
method to the
AdminPanelProvider
AdminPanelProvider
, as well as set
databaseNotificationsPolling()
databaseNotificationsPolling()
to
null
null
for good measure.

Installed Laravel Echo both server side and admin side:
npm install --save-dev laravel-echo pusher-js
npm install --save-dev laravel-echo pusher-js

composer require pusher/pusher-php-server
composer require pusher/pusher-php-server


Set up my env variables to send to Pusher. Pusher dashboard shows that, yes it does receive the messages, the little chart does increase over time. But the
Clients Connected
Clients Connected
is stuck at 0.

Honestly this just might be me being a little tired at this time of the night.

Did a little bit of source diving on the notification blade code and decided to try this on the browser's console:
window.dispatchEvent(new CustomEvent('EchoLoaded'))
window.dispatchEvent(new CustomEvent('EchoLoaded'))

Result:
TypeError: window.Echo is undefined
TypeError: window.Echo is undefined


What do I need to do?
Database notifications - Notifications - Filament
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

listener not working via echo
FilamentFFilament / ❓┊help
2y ago
Database notifications not working
FilamentFFilament / ❓┊help
2y ago
Database Notifications Not Working
FilamentFFilament / ❓┊help
2y ago
Database notifications working locally, on production not
FilamentFFilament / ❓┊help
4mo ago