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

jamaykans's avatar

Laravel Scout (Algolia) Index Settings

When using Algolia with Scout Extended, what is the purpose of having the index settings in both a config file and in Algolia? I know that you can sync settings from local to remote and vise-versa. I'm just wondering why not only configure those settings Algolia-side and not worry with keeping them in sync?

0 likes
2 replies
Swaz's avatar

It's to keep multiple Algolia apps in sync.

Everyone on your team can use their own Algolia keys for local development. And your production app will have it's own keys as well. This way, you can seed Algolia with dummy data, play around with settings , etc... and your live app won't be affected. Only your saved changed to the Algolia configuration files will be synced to your production app.

You can do this automatically in your deploy script:

php artisan scout:sync --keep=local --no-interaction
jamaykans's avatar

When using Algolia with Scout Extended, what is the purpose of having the index settings in both a config file and in Algolia? I know that you can sync settings from local to remote and vise-versa. I'm just wondering why not only configure those settings Algolia-side and not worry with keeping them in sync? https://speedtest.vet/

I got this,...

Please or to participate in this conversation.