Override Global Search View - Custom View
I'm trying to modify the Global Search from Filament using my custom view but I'm not achieving to do this.
I would like to use some funcs from Algolia like recent searchs among others, to be able to do this, I create a new livewire component and I would like to render on Global Search Filament place.
I found a way using but I dont know how to render the Livewire Component.
Any idea ?
Livewire Component:
Solution:Jump to solution
Ops, found a way.
FilamentView::registerRenderHook(
"panels::topbar.end",
fn (): string => Blade::render('@livewire('GlobalSearch')'),...
1 Reply
Solution
Ops, found a way.
FilamentView::registerRenderHook(
"panels::topbar.end",
fn (): string => Blade::render('@livewire('GlobalSearch')'),
);