/** * Update the specified resource in storage. * * @param \Illuminate\Http\Request $request * @param int $id * @return \Illuminate\Http\Response */ public function update(ServiceRequest $request, $id) { $service = Service::findOrfail($id); $service->fill($request->all()); $service->save(); return redirect(route('services.' . $service->section))->with('message', 'Servicio actualizado corectamente'); }