public function update(Category $category) { $this->validateUniqueNameCategory($this->get('category'), $category->id); $category->fill($this->all()); if (!$category->update()) { $this->failedUpdateModel(); } return $category; }
public function update(Category $category) { $this->validateUniqueNameCategory($this->get('category'), $category->id); $category->fill($this->all()); if (!$category->update()) { $this->failedUpdateModel(); } return $category; }