/** * Update the specified resource in storage. * * @param Request $request * @param int $id * @return Response */ public function update(CategoryRequest $request, $id) { $input = $request->all(); $this->repository->update($input, $id); return redirect()->route('category'); }
public function update(Requests\CategoryRequest $request, $id) { $this->categoryModel->find($id)->update($request->all()); return redirect()->route('categories'); }