beid212/model-search-kit
Laravel-пакет для выноса логики поиска: фильтрации и сортировки моделей в отдельные классы. Упрощает поддержку запросов и повторное использование фильтров. Установка через Composer, публикация конфигов через vendor:publish.
?sort=created_at:desc&filter[status]=active) across microservices or monoliths, improving developer onboarding.Adopt if:
Look elsewhere if:
For Executives: "This package lets us ship search/filter functionality in days instead of weeks—critical for [Admin Dashboard/API Roadmap]. It standardizes how teams build queries, reducing bugs and tech debt. Low risk: minimal customization needed for 80% of use cases, and we can extend it later if required."
For Engineering:
"A lightweight Laravel package to handle sort/filter query params (e.g., ?filter[status]=active&sort=-created_at). Saves ~30% dev time vs. manual Eloquent query building. Tradeoff: limited flexibility for edge cases, but we can wrap it or extend it. Let’s prototype it for [Feature X] and measure impact."
For Developers:
*"No more writing repetitive if statements for query params. This gives us a clean Filter/Sort class to chain conditions like:
$results = Model::search()
->filter(['status' => 'active', 'role' => 'admin'])
->sort(['name:asc', 'created_at:desc'])
->get();
Perfect for [Use Case Y]—let’s test it against our current implementation."*
How can I help you explore Laravel packages today?