Skip to content
iverberk edited this page Dec 28, 2014 · 1 revision

Larasearch 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.