Download the PHP package laravel-enso/searchable without Composer
On this page you can find all versions of the php package laravel-enso/searchable. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download laravel-enso/searchable
More information about laravel-enso/searchable
Files in laravel-enso/searchable
Package searchable
Short Description Global searchable registry for Laravel Enso
License MIT
Homepage https://github.com/laravel-enso/searchable
Informations about the package searchable
Searchable
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
Install the package:
Run the package migrations:
Optional publishes:
Features
- Global
api/core/searchable/indexendpoint. - 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
Register searchable models from any package by extending the package search service provider:
The finder returns grouped results with resolved route params and only the route actions the current user is allowed to execute.
API
HTTP routes
GET api/core/searchable/index
Core services
LaravelEnso\\Searchable\\Services\\SearchLaravelEnso\\Searchable\\Services\\Finder
Behavior:
- stores registered searchable model definitions
- executes Scout search when
searchProvideris configured - otherwise executes filter-based database search
- filters available actions by role permissions
Depends On
Required Enso packages:
Contributions
are welcome. Pull requests are great, but issues are good too.
Thank you to all the people who already contributed to Enso!
All versions of searchable with dependencies
laravel-enso/filters Version ^3.0
laravel-enso/migrator Version ^2.1
laravel-enso/permissions Version ^5.0