Add AlgoliaEloquentTrait to user model
Issue #2
resolved
Hi Thanks for the awnsome plugin, i try to extend the RainLab\User\Models $user Model to add the AlgoliaEloquentTrait and i cant figure out how i could do this,
UsersModel::extend(function($model){
$model->implement[] = 'AlgoliaSearch.Laravel.AlgoliaEloquentTrait';
});
does not work
here the error message : Cannot instantiate trait AlgoliaSearch\Laravel\AlgoliaEloquentTrait
Comments (2)
-
repo owner -
repo owner - changed status to resolved
- Log in to comment
Example:
Now you can use all features.
Also you need to create /config/algolia.php: