Flexible is a Laravel 4 and 5 package that aims to seamlessly integrate Elasticsearch functionality with the Eloquent ORM.
The API can be changed (and will) without warning until the first beta tag.
- Plug 'n Play searching functionality for Eloquent models
- Automatic creation/indexing based on Eloquent model properties and relations
- Aggregations, Suggestions, Autocomplete, Highlighting, etc. It's all there!
- Load Eloquent models based on Elasticsearch queries
- Automatic reindexing on updates of (related) Eloquent models
Add Flexible to your composer.json file:
"menthol/flexible": "dev-master"
Add the service provider to your Laravel application config:
'Menthol\Flexible\FlexibleServiceProvider'
This package is very much inspired by these excellent packages that already exist.