categoryRepo = $categoryRepo; $this->categoryService = $categoryService; } public function update(UpdateExpenseCategoryRequest $request) { $category = $this->categoryRepo->save($request->input(), $request->entity()); return $this->itemResponse($category); } public function store(CreateExpenseCategoryRequest $request) { $category = $this->categoryRepo->save($request->input()); return $this->itemResponse($category); } }