public function update($models)
    {
        if (! $this->shouldMaintainIndex($models->first())) {
            return;
        }

        foreach ($models as $model) {
            $this->performUpdate($model);
        }
    }
public function update($models)
    {
        if (! $this->shouldMaintainIndex($models->first())) {
            return;
        }

        foreach ($models as $model) {
            $this->performUpdate($model);
        }
    }
public function update ( $ models ) { if ( ! $ this -> shouldMaintainIndex ( $ models -> first ( ) ) ) { return ; } foreach ( $ models as $ model ) { $ this -> performUpdate ( $ model ) ; } }
Update the given models in the index.

@param  \Illuminate\Database\Eloquent\Collection $models
@return void
Update the given models in the index .