Laravel Packages

Meilitools offers advanced Meilisearch index features in Laravel Scout

Published
Meilitools offers advanced Meilisearch index features in Laravel Scout image

Laravel Meilitools provides additional tools for Laravel Scout 9+ integration with MeiliSearch. This package aims to open the possibility of using advanced filtering easily and sorting through Laravel Scout without manually diving into the internals of the Meilisearch API.

Here's an example from the package's readme of setting up indexes for a model by implementing the MeiliSettings interface:

use Dwarf\MeiliTools\Contracts\Indexes\MeiliSettings;
use Illuminate\Database\Eloquent\Model;
use Laravel\Scout\Searchable;
 
class Article extends Model implements MeiliSettings
{
use Searchable;
 
/**
* {@inheritdoc}
*/
public function meiliSettings(): array
{
return ['filterableAttributes' => ['status']];
}
}

This package also includes useful Artisan commands for things like getting the details of an index, resetting the settings of an index, and more.

If you are experimenting with Meilisearch and Scout, check out our Getting started with Laravel Scout and Meilisearch tutorial.

You can get started with this package on GitHub at dwarfhq/laravel-meilitools.

Paul Redmond photo

Staff writer at Laravel News. Full stack web developer and author.

Sponsored

laravelcloud logo
Laravel Cloud

Easily create and manage your servers and deploy your Laravel applications in seconds.

Visit Laravel Cloud

The latest

View all →
CPX: The Composer Package Executor for PHP image

CPX: The Composer Package Executor for PHP

Read article
Laravel AI SDK Adds Human-in-the-Loop Tool Approval image

Laravel AI SDK Adds Human-in-the-Loop Tool Approval

Read article
Pest 5 Released With Test Impact Analysis, Agent Verification, and Evals image

Pest 5 Released With Test Impact Analysis, Agent Verification, and Evals

Read article
Queue-SQL: Run Mass Deletes and Updates Across Parallel Queue Jobs image

Queue-SQL: Run Mass Deletes and Updates Across Parallel Queue Jobs

Read article
Blade Formatting in Laravel Pint image

Blade Formatting in Laravel Pint

Read article
Inertia DevTools Is Now on the Chrome Web Store image

Inertia DevTools Is Now on the Chrome Web Store

Read article