public function isAutoIndex(Model $model) { return $this->hasAlgoliaTrait($model) && $model->autoIndex(); }