Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Saturnview's avatar

Using Js in all instances of a filament aplication

I'm developing a live chat Filament plugin, but I've run into a problem. I need to implement a js eccho listenner for all users who are logged in. I have to have access to the user ID to implement this. How can I do this so that listenner can be used for all filament pages

0 likes
1 reply
jaseofspades88's avatar

Custom filament pages and components also have access to Alpine.js. Alpine.js can perform any of the javascript you require on your plugin, either in a widget or custom page... the choice is yours

Please or to participate in this conversation.