Package Data | |
---|---|
Maintainer Username: | orphans |
Package Create Date: | 2015-10-08 |
Package Last Update: | 2015-11-10 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-23 03:23:49 |
Package Statistics | |
---|---|
Total Downloads: | 60 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 0 |
Total Watchers: | 3 |
Total Forks: | 0 |
Total Open Issues: | 0 |
Laravel 5.1 Service Wrapper and Facade for elasticsearch/elasticsearch.
Add the following to your composer.json
file:
{
"require" : {
"orphans/elasticsearch" : "dev-master"
}
}
Then install/update your composer project as normal.
Add the following line to you providers in config/app.php
:
Orphans\ElasticSearch\App\Providers\ElasticSearchServiceProvider::class,
Add the following line to you facades in config/app.php
:
'ES' => Orphans\ElasticSearch\Support\Facades\ElasticSearch::class,
To customise your elasticsearch config, publish the package config to your config folder:
php artisan vendor:publish
In your controllers, just include the following:
use ES;
And you can then do queries as normal using the facade:
$response = ES::search($params);