Glaucoma laser surgery works by using focused laser beams to either improve the drainage of fluid from the eye or reduce the production of fluid, thereby lowering intraocular pressure and managing glaucoma.