PHPackages                             laravel-enso/searchable - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Search &amp; Filtering](/categories/search)
4. /
5. laravel-enso/searchable

ActiveLibrary[Search &amp; Filtering](/categories/search)

laravel-enso/searchable
=======================

Global searchable registry for Laravel Enso

2.7.2(2mo ago)351.5k↓16.4%48MITPHP

Since Sep 30Pushed 2mo ago3 watchersCompare

[ Source](https://github.com/laravel-enso/searchable)[ Packagist](https://packagist.org/packages/laravel-enso/searchable)[ Docs](https://github.com/laravel-enso/searchable)[ RSS](/packages/laravel-enso-searchable/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (8)Versions (63)Used By (8)

Searchable
==========

[](#searchable)

[![License](https://camo.githubusercontent.com/074b89bca64d3edc93a1db6c7e3b1636b874540ba91d66367c0e5e354c56d0ea/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e737667)](LICENSE)[![Stable](https://camo.githubusercontent.com/9a2b2b5e2919ec7a00770be58d7e1ca7427a943a5c03a23a828984c6d35cd4b7/68747470733a2f2f706f7365722e707567782e6f72672f6c61726176656c2d656e736f2f73656172636861626c652f76657273696f6e)](https://packagist.org/packages/laravel-enso/searchable)[![Downloads](https://camo.githubusercontent.com/43ed94a6904b86424bf892183a4126992065c76e38bbc097e22645c11ddef348/68747470733a2f2f706f7365722e707567782e6f72672f6c61726176656c2d656e736f2f73656172636861626c652f646f776e6c6f616473)](https://packagist.org/packages/laravel-enso/searchable)[![PHP](https://camo.githubusercontent.com/da7cf113b588d26fe679dfefe4a15009272ed358ad4e786ad3c78b45faa61d69/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d382e322532422d3737376262342e737667)](composer.json)[![Issues](https://camo.githubusercontent.com/32d4ba82ec82c97298c28e6f8eed94b31ad2866f5af79ed7e06a81c576d6d937/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f6c61726176656c2d656e736f2f73656172636861626c652e737667)](https://github.com/laravel-enso/searchable/issues)[![Merge Requests](https://camo.githubusercontent.com/db928a60a0dd77ad2b05f192a3d9093cf9f924929f5c043476b84bd36155da6d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732d70722f6c61726176656c2d656e736f2f73656172636861626c652e737667)](https://github.com/laravel-enso/searchable/pulls)

Description
-----------

[](#description)

Searchable provides the global command-palette style search registry used by Laravel Enso.

The package exposes a single search endpoint, a facade-backed registry for searchable models, and a finder service that resolves results according to configured attributes, scopes, permissions, and optional Scout providers.

It is intended for Enso applications that need cross-module quick search with permission-aware routes and grouped results.

Installation
------------

[](#installation)

Install the package:

```
composer require laravel-enso/searchable
```

Run the package migrations:

```
php artisan migrate
```

Optional publishes:

```
php artisan vendor:publish --tag=searchable-config
php artisan vendor:publish --tag=searchable-factories
```

Features
--------

[](#features)

- Global `api/core/searchable/index` endpoint.
- Facade-backed searchable model registry.
- Finder service that supports local query matching or Scout search providers.
- Permission-filtered route actions based on the authenticated user's role.
- Support for route params, custom labels, scopes, permission groups, and nested relation attributes.

Usage
-----

[](#usage)

Register searchable models from any package by extending the package search service provider:

```
public $register = [
    Product::class => [
        'group' => 'Product',
        'attributes' => ['name', 'internal_code', 'part_number'],
        'label' => 'internal_code',
        'permissionGroup' => 'products',
    ],
];
```

The finder returns grouped results with resolved route params and only the route actions the current user is allowed to execute.

API
---

[](#api)

### HTTP routes

[](#http-routes)

- `GET api/core/searchable/index`

### Core services

[](#core-services)

- `LaravelEnso\\Searchable\\Services\\Search`
- `LaravelEnso\\Searchable\\Services\\Finder`

Behavior:

- stores registered searchable model definitions
- executes Scout search when `searchProvider` is configured
- otherwise executes filter-based database search
- filters available actions by role permissions

Depends On
----------

[](#depends-on)

Required Enso packages:

- [`laravel-enso/core`](https://docs.laravel-enso.com/backend/core.html) [↗](https://github.com/laravel-enso/core)
- [`laravel-enso/filters`](https://docs.laravel-enso.com/backend/filters.html) [↗](https://github.com/laravel-enso/filters)
- [`laravel-enso/migrator`](https://docs.laravel-enso.com/backend/migrator.html) [↗](https://github.com/laravel-enso/migrator)
- [`laravel-enso/permissions`](https://docs.laravel-enso.com/backend/permissions.html) [↗](https://github.com/laravel-enso/permissions)

Contributions
-------------

[](#contributions)

are welcome. Pull requests are great, but issues are good too.

Thank you to all the people who already contributed to Enso!

###  Health Score

58

—

FairBetter than 98% of packages

Maintenance86

Actively maintained with recent releases

Popularity33

Limited adoption so far

Community26

Small or concentrated contributor base

Maturity76

Established project with proven stability

 Bus Factor1

Top contributor holds 65.1% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~51 days

Recently: every ~94 days

Total

55

Last Release

74d ago

Major Versions

1.3.5 → 2.0.02020-06-25

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/16073274?v=4)[Adrian Ocneanu](/maintainers/aocneanu)[@aocneanu](https://github.com/aocneanu)

---

Top Contributors

[![aocneanu](https://avatars.githubusercontent.com/u/16073274?v=4)](https://github.com/aocneanu "aocneanu (56 commits)")[![gandesc](https://avatars.githubusercontent.com/u/14071925?v=4)](https://github.com/gandesc "gandesc (13 commits)")[![vmcvlad](https://avatars.githubusercontent.com/u/37445394?v=4)](https://github.com/vmcvlad "vmcvlad (8 commits)")[![AbdullahiAbdulkabir](https://avatars.githubusercontent.com/u/33360580?v=4)](https://github.com/AbdullahiAbdulkabir "AbdullahiAbdulkabir (3 commits)")[![raftx24](https://avatars.githubusercontent.com/u/10864136?v=4)](https://github.com/raftx24 "raftx24 (3 commits)")[![GITmanuela](https://avatars.githubusercontent.com/u/44998004?v=4)](https://github.com/GITmanuela "GITmanuela (2 commits)")[![StyleCIBot](https://avatars.githubusercontent.com/u/11048387?v=4)](https://github.com/StyleCIBot "StyleCIBot (1 commits)")

---

Tags

configurableensoglobal-searchlaravellaravel-ensomulti-modelsearchablelaravel-enso

### Embed Badge

![Health badge](/badges/laravel-enso-searchable/health.svg)

```
[![Health](https://phpackages.com/badges/laravel-enso-searchable/health.svg)](https://phpackages.com/packages/laravel-enso-searchable)
```

###  Alternatives

[laravel-enso/localisation

Language and translation management for Laravel Enso

1362.8k10](/packages/laravel-enso-localisation)[laravel-enso/tables

Server-side data tables and export backend for Laravel Enso

63355.1k83](/packages/laravel-enso-tables)[laravel-enso/tutorials

Tutorial management backend for Laravel Enso

1140.7k](/packages/laravel-enso-tutorials)[laravel-enso/roles

Role management for Laravel Enso

1044.9k32](/packages/laravel-enso-roles)[laravel-enso/core

The backend shell of a Laravel Enso application

3465.3k205](/packages/laravel-enso-core)[laravel-enso/data-import

Excel Importer dependency for Laravel Enso

2044.0k6](/packages/laravel-enso-data-import)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
