public function store(CreateExpenseCategoryRequest $request) { $category = $this->categoryRepo->save($request->input()); Session::flash('message', trans('texts.created_expense_category')); return redirect()->to($category->getRoute()); }
public function store(CreateExpenseCategoryRequest $request) { $category = $this->categoryRepo->save($request->input()); return $this->itemResponse($category); }