/** * Update the specified resource in storage. * * @param int $id * @return Response */ public function update(Business $business, Service $service, Request $request) { $this->log->info("BusinessServiceController: update: businessId:{$business->id} serviceId:{$service->id}"); $service->update(['name' => $request->get('name'), 'description' => $request->get('description'), 'prerequisites' => $request->get('prerequisites')]); Flash::success(trans('manager.business.service.msg.update.success')); return redirect()->route('manager.business.service.show', [$business, $service]); }
/** * Update the specified resource in storage. * * @param Service $service * * @return Response * @internal param int $id * */ public function update(Service $service) { $service->update(Input::all()); return redirect('services'); }