Insert custom code into filament base Header and Footer
I'm trying to use package https://github.com/shailesh-ladumor/laravel-pwa that instructs me to add few line of code in the root blade file in header and footer section and I'm unable to figure out how to do that.
GitHub
GitHub - shailesh-ladumor/laravel-pwa: Ladumor Laravel PWA makes la...
Ladumor Laravel PWA makes laravel's website a progressive web application. - shailesh-ladumor/laravel-pwa
Solution:Jump to solution
Check render hook (https://filamentphp.com/docs/3.x/support/render-hooks#registering-render-hooks) but for scripts I think this one will make sense https://filamentphp.com/docs/3.x/support/assets#registering-javascript-files
2 Replies
Solution
Check render hook (https://filamentphp.com/docs/3.x/support/render-hooks#registering-render-hooks) but for scripts I think this one will make sense https://filamentphp.com/docs/3.x/support/assets#registering-javascript-files
Great suggestion
I'm using render hook for script as well because I need to inject the script at the end of body tag which it does the job for me
Thank you for quick reply