Please, no one try this. Shining lasers into your eyes, even weak ones, hurt a lot and can cause temporary or permanent damage. It probably wouldn't do much damage if your eyes are closed, but what if you suddenly open them?

However, bright LEDs would probably be somewhat visible through closed eyelids, and they could work, as shown by devices like the NovaDreamer.