jeroen-g/explorer
Laravel-friendly wrapper for Explorer, a lightweight full-text search engine. Index and search your Eloquent models with simple configuration, fast queries, and flexible ranking/filters. Ideal for adding on-site search without running Elasticsearch or Algolia.
By default, your search results will be sorted by their score according to Elasticsearch.
If you want to step in and influence the sorting you may do so using the default orderBy() function from Laravel Scout.
use App\Models\Post;
$results = Post::search('Self-steering')
->orderBy('published_at', 'desc')
->get();
How can I help you explore Laravel packages today?