mozex/laravel-searchable
Add a Searchable trait to any Eloquent model to search multiple columns and related data (relations, morphs, even cross-database) via a single ->search() call. Works with Laravel Scout and includes optional Filament table/global search integration.
whereLike chains with a single search() call.author.name, tags.name) without manual joins.commentable:post.title) in one scope.Adopt if:
tenant_id).Look elsewhere if:
LIKE '%term%' becomes prohibitively slow.where clauses may be needed.For Executives:
"This package lets us add powerful, SQL-based search to our Laravel apps without external costs or dependencies. It’s perfect for internal tools, admin panels, or lightweight public-facing search where speed isn’t critical. For example, we could replace manual whereLike queries across 5+ columns with a single Model::search('term') call—saving dev time and reducing technical debt. It also integrates natively with Filament, so our admin team can search across related data (e.g., posts + authors) without writing custom queries. Best of all, it’s a one-time dependency with no ongoing fees."
For Engineering: *"Laravel Searchable provides a trait-based solution for multi-column, relation-aware search in Eloquent. Key benefits:
whereLike calls with Model::search().author.name, tags.name) via dot notation.LIKE '%term%', so performance degrades with large datasets. Ideal for <1M rows or filtered queries. For bigger scales, we’d pair this with Scout + Meilisearch."*How can I help you explore Laravel packages today?