Ground lasers are the worst

How do you beat them? They are by far the worst (non boss) enemy and make levels a living hell when there are multiple of them.

They are always on the edge of the map too, making it harder to target them and easier for little planes to hit you from the bottom.