Laravel Scout stores your Algolia index configuration in config files within Laravel.
Every time you make changes in your Algolia Dashboard, you should update your local configuration so that the changes cannot be overwritten later.
To do this you should use the command:
php artisan scout:sync
The command will check your local configuration against the remote configuration in your Algolia dashboard, and if it finds changes in your dashboard, then it will offer to update your local configuration file:
If you want to keep the remote changes you made in your Algolia Dashboard, then it's important to select yes. Doing so will update your local configuration with the changes you made in the Algolia Dashboard.
Pushing changes from your local configuration files to your Algolia Dashboard
You can also update your config files locally and then push these changes to your Algolia dashboard.
Once you have changed your config, you can push the changes to your Algolia Dashboard with the sync command:
php artisan scout:sync
You will then see a message asking if your want to update your Algolia Dashboard settings from your local settings:
It's important that you don't make changes in your local config and your Algolia Dashboard at the same time. If you do then there will be a conflict and you will be asked which environment you want to preserve the settings from: