public function update(AdminCategoryRequest $request, $id) { $data = $request->all(); $this->repository->update($data, $id); alert()->success('O registro foi alterado.', 'Sucesso!')->autoclose(3000); return redirect()->route('admin.categories.index'); }
public function update(AdminCategoryRequest $request, $id) { $category = $this->repository->find($id); $data = $request->all(); $this->repository->update($data, $id); return redirect()->route('admin.categories.index'); }
public function update(AdminCategoryRequest $request, $id) { $data = $request->all(); $this->orderService->update($data, $id); return redirect()->route('admin.categories.index'); }
public function store(AdminCategoryRequest $request) { $data = $request->all(); $this->repository->create($data); return redirect()->route('admin.products.index'); }
public function update(AdminCategoryRequest $request, $category_id) { $inputs = $request->all(); $this->repository->update($inputs, $category_id); return redirect()->route('admin.category.index'); }
/** * Update the specified resource in storage. * * @param AdminCategoryRequest $request * @param int $id * @return \Illuminate\Http\Response */ public function update(AdminCategoryRequest $request, $id) { $this->categoryRepository->update($request->all(), $id); return redirect()->route('admin.categories.index'); }