lunarphp / search
Ecommerce search for LunarPHP
1.5.0-beta.6
2026-04-10 12:08 UTC
Requires
- php: ^8.3
- http-interop/http-factory-guzzle: ^1.2
- lunarphp/core: 1.5.0-beta.6
- meilisearch/meilisearch-php: ^1.10
- spatie/laravel-data: ^4.13.1
- typesense/typesense-php: ^4.9
This package is auto-updated.
Last update: 2026-06-01 19:48:29 UTC
README
This packages brings E-Commerce search to Lunar.
Requirements
- Lunar >= 1.x
License
Lunar is open-sourced software licensed under the MIT license.
Installation
Require the composer package
composer require lunarphp/search
Usage
Basic Search
At a basic level, you can search models using the provided facade.
use Lunar\Search\Facades\Search; // Search on a specific model $results = Search::on(\Lunar\Models\Collection::class)->query('Hoodies')->get(); // Search on Lunar\Models\Product by default. $results = Search::query('Hoodies')->get();
Under the hood this will detect what Scout driver is mapped under lunar.search.engine_map and
then perform a search using that given driver. To increase performance the results will not be
hydrated from the database, but instead will be the raw results from the search provider.