Zombiezach8
Zombiezach8
FFilament
Created by Zombiezach8 on 9/3/2024 in #❓┊help
SimplePage render custom view data?
Fixed, sorry. Apparently having a public variable with the same name overwrites any data passed into the render data. Completely overlooked that 🙂
4 replies
FFilament
Created by Zombiezach8 on 8/4/2024 in #❓┊help
SimplePage not using a Panel for Render Hooks/Colors
Ahh I got it to work mostly by forcing the middleware in the route
web.php
web.php
file for this specific route. Though is it possible to force a PanelProvider somehow? It won't load the logo and such but I still don't with it to try force auth the user
7 replies
FFilament
Created by Zombiezach8 on 8/4/2024 in #❓┊help
SimplePage not using a Panel for Render Hooks/Colors
I'm doing
FilamentView::registerRenderHook(
PanelsRenderHook::BODY_START,
fn (): View => view('layouts.header'),
);
FilamentView::registerRenderHook(
PanelsRenderHook::BODY_START,
fn (): View => view('layouts.header'),
);
inside my RenderHooks.php middleware. I only load this from my
$panel->middleware([])
$panel->middleware([])
. If I load this middleware for all routes instead of only for my PanelProvider it decides to load the hooks correctly for the SimplePage.
7 replies
FFilament
Created by Zombiezach8 on 8/4/2024 in #❓┊help
SimplePage not using a Panel for Render Hooks/Colors
The color is just a blue that matches my website, I've already tried doing the trick for putting something in AppServiceProvider which works but doesn't fix the render hook. The render hook just adds my website global theme/footer which works great. Is it possible to have my hooks run on a specific route? I noticed if I forced the hooks to run on every route instead of my filament panel it worked
7 replies