code: protected function setKeysForSaveQuery(EloquentBuilder $query)
      {
          $query->where($this->getKeyName(), '=', $this->getKeyForSaveQuery());
          $query->where($this->localeKey, '=', $this->{$this->localeKey});
  
          return $query;
      }
docs: Set the keys for a save update query.
  
  @param  \Illuminate\Database\Eloquent\Builder  $query
  @return \Illuminate\Database\Eloquent\Builder