JS File share

Is there any particular way to share a javascript file for some a form component? Or should it be done globally through app.js?
4 Replies
LeandroFerreira
Livewire
Inline Scripts | Livewire
A full-stack framework for Laravel that takes the pain out of building dynamic UIs.
Anish
AnishOP2y ago
Thanks. I need to push a script only in some Edit Pages. So, I should rewrite the blade file for this?
LeandroFerreira
should work You can also inject the script based on your route name I think scripts.end - after scripts are defined https://filamentphp.com/docs/2.x/admin/appearance#render-hooks
Filament
Appearance - Admin Panel - Filament
The elegant TALL stack admin panel for Laravel artisans.
Anish
AnishOP2y ago
Thanks a ton for the tip.
Want results from more Discord servers?
Add your server