athphane
athphane
FFilament
Created by athphane on 9/19/2023 in #❓┊help
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() method to the AdminPanelProvider, as well as set databaseNotificationsPolling() to null for good measure. Installed Laravel Echo both server side and admin side: npm install --save-dev laravel-echo pusher-js 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 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')) Result: TypeError: window.Echo is undefined What do I need to do?
5 replies
FFilament
Created by athphane on 6/18/2023 in #❓┊help
How to use Filament Admin's Multi-Relation table outside of Filament Admin panel.
4 replies
FFilament
Created by athphane on 4/4/2023 in #❓┊help
refresh form and apply formatStateUsing
I'm using a disabled text field to just display a value. I have used formatStateUsing() to apply some modifications to the value (prefix and suffix on the value). Currently when I use refreshFormData(), it give me the raw value. I want the refreshFormData() method to: 1. Refresh the data 2. Show me the result of the formatStateUsing method. Am I making sense?
2 replies