algolia / algoliasearch-client-php

⚡️ A fully-featured and blazing-fast PHP API client to interact with Algolia.
https://www.algolia.com/doc/api-client/php/getting-started/
MIT License
671 stars 116 forks source link

Can I switch off auto sync with Algolia temporary ? #727

Closed PetroGromovo closed 8 months ago

PetroGromovo commented 8 months ago

Working with Algolia driver I got error

Impossible to connect, please check your Algolia Application Id.

in in .env file algolia credentials are not found.

I wonder if there is a way to switch auto sync with Algolia server without run time errors in this case and without changing models code?

I do not see how that can be done, as Searchable trait is written in model...

Any decision ?

"laravel/framework": "^10.34.2",
"algolia/algoliasearch-client-php": "^3.4",

Thanks in advance!

DevinCodes commented 8 months ago

Hi @PetroGromovo ,

This seems to be a question surrounding Laravel, which is not part of this repository. To integrate Laravel and Algolia easily you can use the Scout Extended package, which would also allow you to turn off syncing with Algolia.

Hope this helps, please reopen the issue if there's more context to this issue that's currently missing.

Cheers!