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.
Adopt When:
LIKE '%term%' queries.Look Elsewhere When:
LIKE '%term%' becomes prohibitively slow. Switch to Scout + a dedicated search engine (e.g., Typesense, Algolia).For Executives: "This package lets us add powerful, SQL-based search across our entire application—including complex relationships—without the cost or complexity of a dedicated search engine. It’s perfect for internal tools, admin panels, or projects where search is secondary to core functionality. For example, we can unify search across comments on posts/videos or filter cross-database records in Filament dashboards, all while keeping infrastructure simple and low-maintenance. It’s a ‘build vs. buy’ win: we avoid the overhead of Scout/Algolia while delivering 80% of the search utility for 20% of the effort."
For Engineers:
"Laravel Searchable gives us a drop-in trait to enable multi-column, relation, and polymorphic searches with zero config. It plays nicely with Filament for global/table search and handles edge cases like cross-database relations out of the box. For small-to-medium datasets, it’s faster to implement than Scout + Meilisearch and avoids external dependencies. The only tradeoff is performance at scale—if we hit that, we can always migrate to Scout later. It also resolves naming conflicts with Scout’s search() method cleanly, so we can coexist if needed."
How can I help you explore Laravel packages today?