# protonemedia/laravel-cross-eloquent-search

Laravel package to search through multiple Eloquent models. Supports sorting, pagination, scoped queries, eager load relationships and searching through single or multiple columns.

Repository: https://github.com/protonemedia/laravel-cross-eloquent-search
Canonical: https://ross.abutalabs.com/products/laravel-cross-eloquent-search
Homepage: https://protone.media/blog/search-through-multiple-eloquent-models-with-our-latest-laravel-package
Language: PHP
License: MIT
License Family: permissive
Topics: laravel, php, mysql, search, searching, laravel-package
Last push: 2026-02-28T09:56:31+00:00

## Health v2 (maintenance only)
Score: 65/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 69, release rhythm 40, longevity 100
- inputs: {"age_days": 2256, "days_push": 186, "days_rel": 191, "gap_med": 230.0, "n_releases_24m": 3}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1129, forks 79 (observed 2026-08-28T04:03:42.132188+00:00)

## What it is
A Laravel PHP package that lets you search across multiple Eloquent models in a single database query. It supports cross-model pagination, sorting, full-text search, relationship searching, and works with MySQL, PostgreSQL, and SQLite.

## Use cases
- search across multiple laravel models in one query
- paginate combined search results from posts and videos
- add full-text search to eloquent models without scout or algolia
- search through model relationships and nested columns
- sort cross-model search results by relevance or column
- filter search with query scopes and constraints

## When to choose
- you have a Laravel app with multiple Eloquent models to search simultaneously
- you want in-database search without external services like Algolia or Meilisearch
- you need cross-model pagination and sorting of combined results
- you want zero third-party dependencies and simple setup

## When to avoid
- you need a dedicated search engine with typo tolerance, faceting, or fuzzy matching at scale
- your project is not built on Laravel or Eloquent
- you need to index non-database sources like files or external APIs

## Facets
- artifact type: library
- maturity: active
- function: search-engine, database
- domain: web-development, databases
- platform: php
- tags: eloquent, laravel-package, cross-model-search, full-text-search, pagination, search, laravel, mysql, postgresql, sqlite

## Member repositories
- protonemedia/laravel-cross-eloquent-search (main) score 65

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:42.132188+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:38:27.252468+00:00, confidence not recorded.
  - readme: https://github.com/protonemedia/laravel-cross-eloquent-search (fetched 2026-08-28T04:03:42.132188+00:00, sha 6cf62ff67749)
  - homepage: https://protone.media/blog/search-through-multiple-eloquent-models-with-our-latest-laravel-package (fetched 2026-08-29T12:42:52.496886+00:00, sha 93636346ed16)
- Data as of 2026-08-30T08:39:29.467469+00:00.
