Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

aureliee123's avatar

Meilisearch : The Authorization header is missing

Hello , i installed meilisearch and set an api key right now i am trying to use it in my website when i do php artisan scout:index products i get the error The Authorization header is missing. It must use the bearer authorization method.

i did put meilisearch_key in the env file i tried updating meilisearch-php i tried cache:clear , config:clear but i still get the same error

any help

0 likes
3 replies
kimsal's avatar

back to having the same problem - sorry you don't have an answer posted here, because I'm back to needing this too :/

1 like
qumber's avatar

For me this happens when I run php artisan optimize. If i clear the optimization (php artisan optimize:clear), the error goes away.

Please or to participate in this conversation.