Inheritance: extends ExpenseCategoryRequest
コード例 #1
0
 public function store(CreateExpenseCategoryRequest $request)
 {
     $category = $this->categoryRepo->save($request->input());
     Session::flash('message', trans('texts.created_expense_category'));
     return redirect()->to($category->getRoute());
 }
コード例 #2
0
 public function store(CreateExpenseCategoryRequest $request)
 {
     $category = $this->categoryRepo->save($request->input());
     return $this->itemResponse($category);
 }