public function generateSlugFromFields(array $fields) { $slug = Slug::fromString(implode('-', $this->getSlugFields($fields))); $this->setSlugValue($slug); }