Install via composer
algolia/algoliasearch-laravel to your
composer require algolia/algoliasearch-laravel
Add the service provider to
config/app.php in the
Laravel Algolia requires a connection configuration. To get started, you’ll need to publish all vendor assets:
php artisan vendor:publish
You can add the
--provider="Vinkla\Algolia\AlgoliaServiceProvider" option to only publish assets of the Algolia package.
This will create a
config/algolia.php file in your app that you can modify to set your configuration. Also, make sure you check for changes compared to the original config file after an upgrade.
Did you find this page helpful?
We're always looking for advice to help improve our documentation! Please let us know what's working (or what's not!) - we're constantly iterating thanks to the feedback we receive.