/** * Update the specified resource in storage. * * @param App\Http\Requests\CategoryRequest $request * @param int $id * @return Response */ public function update(SubCategoryRequest $request, $id) { $post = $this->sub_cat_gestion->getById($id); // $this->authorize('change', $post); $this->sub_cat_gestion->update($request->all(), $post); return redirect('subcat')->with('ok', trans('back/blog.updated')); }
/** * Update the specified resource in storage. * * @param App\Http\Requests\CategoryRequest $request * @param int $id * @return Response */ public function update(BannerRequest $request, $id) { $banner = $this->banner_gestion->getById($id); // $this->authorize('change', $post); $this->banner_gestion->update($request->all(), $banner); return redirect('banner')->with('ok', trans('back/banner.updated')); }