コード例 #1
0
 public function update(UpdateExpenseCategoryRequest $request)
 {
     $category = $this->categoryRepo->save($request->input(), $request->entity());
     Session::flash('message', trans('texts.updated_expense_category'));
     return redirect()->to($category->getRoute());
 }
コード例 #2
0
 public function update(UpdateExpenseCategoryRequest $request)
 {
     $category = $this->categoryRepo->save($request->input(), $request->entity());
     return $this->itemResponse($category);
 }