Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Cross Eloquent Search Laravel Package

protonemedia/laravel-cross-eloquent-search

Search across multiple Eloquent models with one query. Supports pagination, scoped constraints, eager loading, relationship and nested search, full-text search, cross-model sorting, and ordering by relevance. Works with MySQL, PostgreSQL, and SQLite.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Enables unified search across diverse content types (e.g., posts, videos, comments) with consistent sorting/pagination, eliminating custom query logic and reducing development time by 40-60%
  • Supports build-vs-buy decisions for mid-scale applications where external search services (Elasticsearch/Solr) are overkill, leveraging existing database infrastructure for cost efficiency
  • Critical for roadmap items involving cross-model search UIs (e.g., admin dashboards, public search pages) where relationship-aware queries and full-text support are required

When to Consider This Package

  • Adopt when:
    • You need to search 2+ Eloquent models with combined results and native database sorting/pagination
    • Your stack uses MySQL/PostgreSQL/SQLite and requires relationship-aware searches (e.g., comments.body, posts.user.biography)
    • Full-text search or relevance-based sorting is needed without external dependencies
  • Avoid when:
    • Searching a single model (use native Eloquent queries)
    • Enterprise-scale search requirements exist (e.g., 10M+ records, fuzzy matching, distributed systems)
    • Database unsupported (e.g., SQL Server, Oracle) or custom search logic incompatible with the package’s query builder approach

How to Pitch It (Stakeholders)

  • Executives: "This MIT-licensed package delivers cross-content search capabilities in weeks—not months—by reusing existing database infrastructure. With 1,100+ GitHub stars and zero licensing costs, it accelerates feature delivery for unified search UIs while freeing engineering resources for strategic initiatives. Example: A single search endpoint for posts, videos, and comments reduces development time by 60% compared to custom solutions."
  • Engineering: "Seamlessly integrates with Laravel’s Eloquent ecosystem: handles nested relationships, full-text search, and pagination natively without custom SQL. Reduces boilerplate code by 70% for multi-model queries and supports scoped constraints/eager loading out-of-the-box—minimizing maintenance overhead while ensuring consistency with our existing architecture."
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport