Skip to content
This repository has been archived by the owner on Feb 16, 2018. It is now read-only.
nath edited this page Jan 22, 2016 · 2 revisions

Flexible unlocks its functionality through PHP Traits. There are three Traits that you can include in your models:

Searchable

Use it on the 'base' models that you wish to create indices from.

Transformable

Use it on (related) models that you wish to have indexed.

Callable

Use it on (related) models to let the 'base' model know that something has changed and that a reindex of the Elasticsearch document should be performed.