baethon/eloquent-searchable-scope
A Laravel package that adds reusable searchable scopes to Eloquent models, letting you filter query results by search terms through a fluent, chainable interface instead of repeating query logic across your application.
baethon/eloquent-searchable-scope adds a reusable searchable scope to Laravel Eloquent models, letting you query records against multiple columns without repeating where ... orWhere chains. Define which attributes participate in the search, and the scope builds the grouped query for you.
search($term) call across configured columnsWHERE clauses keep orWhere logic from breaking other constraintsHow can I help you explore Laravel packages today?