public function delete(Request $r) { $id = $r->input('id'); $servicio = TarifaServicios::find($id); $servicio->tipo = 1; $servicio->save(); }