Lasers specifically intended to permanently injure eyes are illegal per international convention.
Lasers intended to do other damage, which might injure eyes incidentally, are legal (just like a JDAM will probably injure your eyes if it hits you).
The kind of lasers useful against tactical military platforms would burn the laser googles right off of your face (and also burn your face off too).