Operational advantages
Directed energy weapons could have several main advantages over conventional weaponry:
Directed-energy weapons can be used discreetly; radiation does not generate sound and is invisible if outside the visible spectrum.[34][35]
Light is, for practical purposes, unaffected by gravity, windage and Coriolis force, giving it an almost perfectly flat trajectory. This makes aim much more precise and extends the range to line-of-sight, limited only by beam diffraction and spread (which dilute the power and weaken the effect), and absorption or scattering by intervening atmospheric contents.
Lasers travel at light-speed and have long range, making them suitable for use in space warfare.
Laser weapons potentially eliminate many logistical problems in terms of ammunition supply, as long as there is enough energy to power them.
Depending on several operational factors, directed-energy weapons may be cheaper to operate than conventional weapons in certain contexts.
https://en.wikipedia.org/wiki/Directed-energy_weapon