> ## Documentation Index
> Fetch the complete documentation index at: https://herd.laravel.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Meilisearch

# Set up Meilisearch for Laravel Scout

Meilisearch is a powerful search engine for your application, working perfectly with [Laravel Scout](https://laravel.com/docs/11.x/scout). It allows you to add a search engine with great relevancy, typo correction, and more to your application by simply adding the `Searchable` Trait to a model.

<Frame>
  <img alt="Screenshot of Meilisearch settings" src="https://mintcdn.com/herd/DeXoYubPfJnYhPtY/images/docs/setup-meilisearch.png?fit=max&auto=format&n=DeXoYubPfJnYhPtY&q=85&s=d72a51d32be226143441c1c7131394eb" width="1800" height="1102" data-path="images/docs/setup-meilisearch.png" />
</Frame>

## Connecting from your Laravel application

Like with all Herd services, you can configure the port as well as the service name of your Meilisearch instance and add the following environment variables to your `.env` file.

```env theme={null}
SCOUT_DRIVER=meilisearch
MEILISEARCH_HOST=http://127.0.0.1:7700
MEILISEARCH_KEY=LARAVEL-HERD
```

When using the Meilisearch driver you will need to install the Meilisearch PHP SDK via the composer package manager:

```bash theme={null}
composer require meilisearch/meilisearch-php http-interop/http-factory-guzzle
```

You can find additional information about using Laravel Scout with Meilisearch in the [Laravel documentation](https://laravel.com/docs/11.x/scout#meilisearch).

## Using Meilisearch

You can open the Meilisearch Dashboard or the logs of the service from the right side of the service details.

<Frame>
  <img alt="" src="https://mintcdn.com/herd/DeXoYubPfJnYhPtY/images/docs/settings_services_meilisearch.png?fit=max&auto=format&n=DeXoYubPfJnYhPtY&q=85&s=381dca368dda29b60cba76b48aa21eb9" width="1800" height="1102" data-path="images/docs/settings_services_meilisearch.png" />
</Frame>

## Dashboard

The Meilisearch dashboard is accessible via `http://locahost:port` or by using the dashboard button in the services list.

<Frame>
  <img alt="Screenshot of the Meilisearch dashboard" src="https://mintcdn.com/herd/DeXoYubPfJnYhPtY/images/docs/setup-meilisearch-dashboard.png?fit=max&auto=format&n=DeXoYubPfJnYhPtY&q=85&s=85fa215d160b130a895cc6cbac189730" width="2882" height="1984" data-path="images/docs/setup-meilisearch-dashboard.png" />
</Frame>
