Exemplo n.º 1
0
 /**
  * Update the specified resource in storage.
  *
  * @param  int $id
  * @return Response
  */
 public function update(EditServiceRequest $request, $id)
 {
     $this->service->fill($request->all());
     $this->service->save();
     Session::flash('message', 'The Service ' . $this->service->name . ' have been updated');
     return redirect()->back();
 }
 public function update(EditServiceRequest $request, $id)
 {
     $id_user = Auth::user()->id;
     $services = Service::findOrFail($id);
     $services->iduser_update->{$id_user};
     $services->fill($request->all());
     $services->save();
     Session::flash('message', $services->name . ' Se actualizo exitosamente');
     return redirect()->back();
 }