protected function shouldMaintainIndex(Model $model = null)
    {
        if ((bool) $this->config('maintain_index', true) === false) {
            return false;
        }

        if ($model !== null) {
            return $this->option($model, 'maintain_index', true);
        }
    }
protected function shouldMaintainIndex(Model $model = null)
    {
        if ((bool) $this->config('maintain_index', true) === false) {
            return false;
        }

        if ($model !== null) {
            return $this->option($model, 'maintain_index', true);
        }
    }
protected function shouldMaintainIndex ( Model $ model = null ) { if ( ( bool ) $ this -> config ( 'maintain_index' , true ) === false ) { return false ; } if ( $ model !== null ) { return $ this -> option ( $ model , 'maintain_index' , true ) ; } }
See if the index should be maintained for a given model.

@param \Illuminate\Database\Eloquent\Model|null $model
@return bool
See if the index should be maintained for a given model .