original_string: public function translation()
      {
          if (is_null($this->translationsClass))
              $this->translationsClass = get_class($this) . 'Translations';
  
          return $this->hasOne($this->translationsClass, 'record_id', 'id')->where('language_code', app()->getLocale());
      }
code: public function translation()
      {
          if (is_null($this->translationsClass))
              $this->translationsClass = get_class($this) . 'Translations';
  
          return $this->hasOne($this->translationsClass, 'record_id', 'id')->where('language_code', app()->getLocale());
      }
code_tokens: public function translation ( ) { if ( is_null ( $ this -> translationsClass ) ) $ this -> translationsClass = get_class ( $ this ) . 'Translations' ; return $ this -> hasOne ( $ this -> translationsClass , 'record_id' , 'id' ) -> where ( 'language_code' , app ( ) -> getLocale ( ) ) ; }
docstring: Single translation only
  
  @return \Illuminate\Database\Eloquent\Relations\HasOne
docstring_tokens: Single translation only