/** * Update the specified resource in storage. * * @param int $id * @return Response */ public function update(UpdateVendorRequest $request) { $vendor = $this->vendorService->save($request->input(), $request->entity()); Session::flash('message', trans('texts.updated_vendor')); return redirect()->to($vendor->getRoute()); }
/** * Update the specified resource in storage. * * @param int $id * @return Response */ public function update(UpdateVendorRequest $request) { $data = $request->input(); if (!$this->checkUpdatePermission($data, $response)) { return $response; } $vendor = $this->vendorService->save($data); Session::flash('message', trans('texts.updated_vendor')); return redirect()->to($vendor->getRoute()); }