I don't know Inertia so well, but there is no reason why the search could not work.
But if it is the search engine that you need, this can help you.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I wanted a quick search on my navbar area which is globally accessible from all pages.
I tried putting my search method on the shared data like below and tried to do a partial reload whenever there is a search query from any page but it didn't work.
Is this not possible to do with inertia or is there any other way to implement this kind of feature?
public function share(Request $request): array
{
return array_merge(parent::share($request), [
'quickSearch' => fn () => $this->quickSearch($request)
]);
}
Inertia.visit(curruntUrl, { search: 'John' }, { only: ['quickSearch'] })
Please or to participate in this conversation.