Laravel Comments in Filament v3

Struggling a bit to integrate it in v3. These I've done so far I followed this as I think it has the same integration process. On my Panel
->renderHook(
'panels::head.end',
fn () => Blade::render('<x-comments::styles />'),
)
->renderHook(
'panels::body.end',
fn (): string => Blade::render('<x-comments::scripts />'),
)
->renderHook(
'panels::head.end',
fn () => Blade::render('<x-comments::styles />'),
)
->renderHook(
'panels::body.end',
fn (): string => Blade::render('<x-comments::scripts />'),
)
And the screenshots I provided are the results. The package didn't have the styles even though I injected the styles in my panel and produces error on the console. Please shed some light.
1 Reply
ddoddsr
ddoddsr2mo ago
This is stale but since a serch brought be here when I was trying to figure it out, I thought I'd leave some progress.
Filament::registerRenderHook(
PanelsRenderHook::STYLES_AFTER,
fn (): string => Blade::render('@laravelCommentsLivewireStyles'),
);

Filament::registerRenderHook(
PanelsRenderHook::SCRIPTS_AFTER,
fn (): string => Blade::render('@laravelCommentsLivewireScripts'),
);
Filament::registerRenderHook(
PanelsRenderHook::STYLES_AFTER,
fn (): string => Blade::render('@laravelCommentsLivewireStyles'),
);

Filament::registerRenderHook(
PanelsRenderHook::SCRIPTS_AFTER,
fn (): string => Blade::render('@laravelCommentsLivewireScripts'),
);
. Not complete but better.

Did you find this page helpful?