Everyone thought a huge laser taking up a dedicated 747 (Boeing YAL-1) was a stupid idea but looks like it was a good starting point.
However destroying magnitude-smaller, nearby air-to-air missiles is much more achievable and was demonstrated by the NKC-135 / Airborne Laser Lab project back in 1979-85. Yes, 40 years ago.