function setCategories($categories) { $this->attributes['categories'] = Categories::create($categories); return $this; }
/** * @param array $categories * * @return $this */ public function setCategories($categories) { $this->categories = Categories::create($categories); return $this; }