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
Push scripts?
https://laravel-livewire.com/docs/2.x/inline-scripts#introduction
What are you trying to do?
Livewire
Inline Scripts | Livewire
A full-stack framework for Laravel that takes the pain out of building dynamic UIs.
Thanks. I need to push a script only in some Edit Pages. So, I should rewrite the blade file for this?
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
Thanks a ton for the tip.