/** * Update the specified resource in storage. * * @param int $id * @return Response */ public function update($id) { // $service_type = ServiceType::find($id); $service_type->serty_name = Input::get('name'); $service_type->save(); return Redirect::to('service_type'); }
/** * Remove the specified resource from storage. * * @param $id * @return Response */ public function postDelete(DeleteRequest $request, $id) { $service = ServiceType::find($id); $service->delete(); }