1. Installation - Osushi/ElasticsearchOrm GitHub Wiki
Installation
Laravel Installation
1) Install package using composer.
$ composer require osushi/elasticsearch-orm:~{version}
Version Metrics
Elasticsearch 5.6.x | Elasticsearch 6.2.x | |
---|---|---|
Laravel 5.5.x | ~5.6.0 | ~6.2.0 |
Laravel 5.6.x | ~5.6.0 | ~6.2.0 |
Laravel 5.7.x | ~5.6.0 | ~6.2.0 |
e.g.
$ composer require osushi/elasticsearch-orm:~6.2.0
2) Add package service provider.
[config/app.php]
Osushi\ElasticsearchOrm\Providers\ElasticsearchOrmServiceProvider::class
3) Publishing.
$ php artisan vendor:publish --provider="Osushi\ElasticsearchOrm\Providers\ElasticsearchOrmServiceProvider"