Injecting content just after the body tag when using filament
Can anyone point me to the correct location to adding a subtle modification the primary template used in Filament v3 - I ned to inject some custom content immediately after the body tag and am having trouble locating the template that used for this.
I looked at template
resources/views/vendor/filament/components/layout/base.blade.php
that I assumed would be the right one but my changes don't get reflected when testing.
Is there a more appropriate method I should follow for this perhaps on the panel provider?Solution:Jump to solution
https://filamentphp.com/docs/3.x/support/render-hooks
There is a Body tag hook...
7 Replies
What do you mean “after the body tag?” Do you mean the opening body tag?
Solution
https://filamentphp.com/docs/3.x/support/render-hooks
There is a Body tag hook
The body hook tag might work, I basically want to inject a view immediately after the tag
Again, what do you mean after the tag? In html anything between </body> and </html> doesn’t make sense, it’s not valid.
Assume he means after <body>
PanelsRenderHook::BODY_START - After <body>
thanks guys - much appreciated!