src/TranslationModel.php
protected function setKeysForSaveQuery(EloquentBuilder $query)
    {
        $query->where($this->getKeyName(), '=', $this->getKeyForSaveQuery());
        $query->where($this->localeKey, '=', $this->{$this->localeKey});

        return $query;
    }
protected function setKeysForSaveQuery(EloquentBuilder $query)
    {
        $query->where($this->getKeyName(), '=', $this->getKeyForSaveQuery());
        $query->where($this->localeKey, '=', $this->{$this->localeKey});

        return $query;
    }
Set the keys for a save update query.

@param  \Illuminate\Database\Eloquent\Builder  $query
@return \Illuminate\Database\Eloquent\Builder