chaospower/laravel-elastic-indexer is a Laravel package for laravel elastic eloquent query builder.
It currently has 1 GitHub stars and 515 downloads on Packagist.
Install it with composer require chaospower/laravel-elastic-indexer.
Discover more Laravel packages by chaospower
or browse all Laravel packages to compare alternatives.
Last updated
This package is currently in development stage. Use at your own risk.
TODO: Package Intro
composer require chaospower/laravel-elastic-indexer
Go to your project root where artisan.php is found. Then publish the vendor package
php artisan vendor:publish
Edit your config/app.php then add the provider
ElasticEqb\Providers\ElasticProvider::class
All models should use and implement DoesElasticIndexer. Doing so will allow the service to listen to specific models and CRUD the Elastic side of the model. It will also do the elastic map automatically.
/**
* Class Agency
*
* @package Travel\Models
*/
class Agency extends Model implements ElasticIndexer
{
use DoesElasticIndexer;
}
Give ability to listen to all models not having the instance of DoesElasticIndexer
Convert package as a Laravel Database