How to add code into main Head in all pages in Filamentphp?

I wanna set code javascript into head
1 Reply
ConnorHowell
ConnorHowell7mo ago
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
Want results from more Discord servers?
Add your server