Skip to content

SearchHandler can now be replaced by your own implementation#2099

Merged
luanfreitasdev merged 1 commit into
Power-Components:6.xfrom
edwinheij:6.x
Apr 22, 2026
Merged

SearchHandler can now be replaced by your own implementation#2099
luanfreitasdev merged 1 commit into
Power-Components:6.xfrom
edwinheij:6.x

Conversation

@edwinheij

Copy link
Copy Markdown
Contributor

This is now resolved via the Laravel container

⚡ PowerGrid - Pull Request

  • Enhancement

Description

I needed some adjustments in the way the global search was working. I extracted it to a handler which can be resolved through the Laravel container. So anyone can now make it's own implementation while adding this to their own ServiceProvider:

use PowerComponents\LivewirePowerGrid\DataSource\Processors\Database\Handlers\SearchHandlerContract;
use App\Support\Powergrid\Handlers\SearchHandler;

$this->app->bind(SearchHandlerContract::class, function ($app, array $params) {
    return new SearchHandler($params['component']);
});

Related Issue(s):

Documentation

This PR requires Documentation update?

  • No

@edwinheij edwinheij changed the title SearchHandler can now be replaced by you own implementation SearchHandler can now be replaced by your own implementation Apr 22, 2026
@luanfreitasdev luanfreitasdev merged commit d0a7973 into Power-Components:6.x Apr 22, 2026
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants