How to add code into main Head in all pages in Filamentphp?
I wanna set code javascript into head
1 Reply
There's 2 ways, you can either register a javascript file on the panel: https://filamentphp.com/docs/3.x/panels/configuration#registering-assets-for-a-panel
Or you can register a render hook https://filamentphp.com/docs/3.x/support/render-hooks#registering-render-hooks, you'd want PanelsRenderHook::HEAD_END or PanelsRenderHook::HEAD_START