# spatie/laravel-searchable

Pragmatically search through models and other sources

Repository: https://github.com/spatie/laravel-searchable
Canonical: https://ross.abutalabs.com/products/laravel-searchable
Homepage: https://spatie.be/open-source
Language: PHP
License: MIT
License Family: permissive
Topics: search, laravel, php
Last push: 2026-02-21T21:53:30+00:00

## Health v2 (maintenance only)
Score: 75/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 68, release rhythm 71, longevity 100
- inputs: {"age_days": 2827, "days_push": 193, "days_rel": 193, "gap_med": 12, "n_releases_24m": 4}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1376, forks 111 (observed 2026-08-28T04:04:33.285564+00:00)

## What it is
A Laravel package that provides pragmatic, structured search across Eloquent models and other sources like APIs or arrays. It aggregates case-insensitive search results from multiple registered sources into a unified, groupable result set.

## Use cases
- add search to laravel models
- search multiple eloquent models at once
- unified search results grouped by type
- search across models and external apis
- simple site search for laravel app
- case-insensitive model attribute search

## When to choose
- you need simple, pragmatic search over Eloquent models and other sources in a Laravel app
- you want structured, grouped search results without running a dedicated search engine
- you need to combine model data with external sources in one search

## When to avoid
- you need full-text relevance ranking, fuzzy matching, or typo tolerance
- you have large datasets where a dedicated engine like Meilisearch or Elasticsearch is warranted
- you are not using Laravel or PHP

## Facets
- artifact type: library
- maturity: stable
- function: search-engine
- domain: web-development, backend
- platform: php
- tags: laravel, eloquent, model-search, spatie, search-aspects, search, web-server

## Member repositories
- spatie/laravel-searchable (main) score 75

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:33.285564+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-30T04:40:32.116025+00:00, confidence not recorded.
  - readme: https://github.com/spatie/laravel-searchable (fetched 2026-08-28T04:04:33.285564+00:00, sha b4cfedfdb60d)
  - homepage: https://spatie.be/open-source (fetched 2026-08-29T11:56:45.028975+00:00, sha 6ed5abf69535)
  - site_page: https://spatie.be/docs (fetched 2026-08-29T11:56:45.038504+00:00, sha 08e024d86d95)
  - site_page: https://spatie.be/about-us (fetched 2026-08-29T11:56:45.041134+00:00, sha d3cb88e4b34c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
