This package allows easier implementation of the madewithlove/elasticsearcher package. More information on their docs.
-
Installation of the latest version is easy via composer:
composer require madewithlove/elasticsearcher-laravel
-
Update config/app.php to register the provider
# Add `Madewithlove\ElasticSearcherLaravel\ServiceProvider` to the `providers` array 'providers' => array( ... Madewithlove\ElasticSearcherLaravel\ServiceProvider::class, )
-
Publish the configuration file
config/elasticsearcher.php
php artisan vendor:publish --provider="Madewithlove\ElasticSearcherLaravel\ServiceProvider"
You can use config/elasticsearcher.php
for configuring elasticsearcher.
php artisan search:create-index <index-name>