protected function getEmptyTranslation(string $locale): Model
    {
        $appLocale = $this->getLocale();

        $this->setLocale($locale);

        foreach ($this->getTranslatable() as $attribute) {
            $translation = $this->setAttribute($attribute, null);
        }

        $this->setLocale($appLocale);

        return $translation;
    }
protected function getEmptyTranslation(string $locale): Model
    {
        $appLocale = $this->getLocale();

        $this->setLocale($locale);

        foreach ($this->getTranslatable() as $attribute) {
            $translation = $this->setAttribute($attribute, null);
        }

        $this->setLocale($appLocale);

        return $translation;
    }
protected function getEmptyTranslation ( string $ locale ) : Model { $ appLocale = $ this -> getLocale ( ) ; $ this -> setLocale ( $ locale ) ; foreach ( $ this -> getTranslatable ( ) as $ attribute ) { $ translation = $ this -> setAttribute ( $ attribute , null ) ; } $ this -> setLocale ( $ appLocale ) ; return $ translation ; }
Get an empty translation.

@param string $locale

@return \Illuminate\Database\Eloquent\Model
Get an empty translation .