code: public function translations()
      {
          $localKey = $this->getKeyName();
          $foreignKey = $this->getForeignKey();
          $instance = $this->translationModel();
  
          return new HasMany($instance->newQuery(), $this, $instance->getTable() . '.' . $foreignKey, $localKey);
      }
docs: Translations relationship.
  
  @return \Illuminate\Database\Eloquent\Relations\HasMany