laravel-enso/searchable is a Laravel package for global searchable registry for laravel enso.
It currently has 3 GitHub stars and 51.435 downloads on Packagist (latest version 2.7.2).
Install it with composer require laravel-enso/searchable.
Discover more Laravel packages by laravel-enso
or browse all Laravel packages to compare alternatives.
Last updated
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.
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
api/core/searchable/index endpoint.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.
GET api/core/searchable/indexLaravelEnso\\Searchable\\Services\\SearchLaravelEnso\\Searchable\\Services\\FinderBehavior:
searchProvider is configuredRequired Enso packages:
are welcome. Pull requests are great, but issues are good too.
Thank you to all the people who already contributed to Enso!