lunarphp / livewire-starter-kit

Demonstration store for Lunar
https://docs.lunarphp.io/core/starter-kits.html
149 stars 50 forks source link

MeiliSearch: The provided API key is invalid. #38

Closed Nestoran closed 1 year ago

Nestoran commented 1 year ago

While following the installation instructions, after running the following command:

php artisan db:seed

I get this error:

 MeiliSearch\Exceptions\ApiException 
    The provided API key is invalid.

Same error appears after finishing the rest of the installation steps, then opening the /hub/products, /hub/orders or /hub/customers routes.

Nestoran commented 1 year ago

The problem gets solved after adding the following line to the .env file:

MEILISEARCH_KEY=masterkey

This should be part of the original .env.example file, or added to the documentation.