/**
  * 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());
 }
예제 #2
0
 /**
  * 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());
 }