public function update(array $data, $categoryId) { return $this->categoryModel->where('id', $categoryId)->update($data); }