FRodrigues's avatar

FRodrigues started a new conversation+100 XP

5mos ago

I have been working with custom livewire pages inside filament. Everything works fine except for Livewire/flux components.

I have configured the following,

AppServiceProvider.php, inside boot

use Illuminate\Support\Facades\Blade;

if (request()->is('admin/flux*')) {
    FilamentView::registerRenderHook(
        PanelsRenderHook::BODY_END,
        fn (): string => Blade::render('@fluxScripts'),
    );

    FilamentView::registerRenderHook(
        PanelsRenderHook::HEAD_END,
        fn (): string => Blade::render('@fluxAppearance'),
    );
}

app.css

@import 'tailwindcss';
@import '../../vendor/livewire/flux/dist/flux.css';

This allows Flux works in filament (i also have the pro components), but the render dont work properly. Styles and Scripts. The free ones are the only ones that render properly, but even so with some defects.

Any idea?