public function setTranslations(string $key, array $translations) { $this->guardAgainstUntranslatableAttribute($key); foreach ($translations as $locale => $translation) { $this->setTranslation($key, $locale, $translation); } return $this; }