FilamentF
Filament3y ago
Mark

Rendering a component before the user menu on the header

I don't know what I did wrong here, but I created a ServiceProvider that does the folliwing in the boot() method:
Filament::registerRenderHook(
            'user-menu.start',
            static fn (): string => Blade::render("<x-team-switcher>")
        );


The components are standard components that were created through php arsisan make:component TeamSwitcher
Was this page helpful?