driving laser on beaglebone black

I have a Laser pointer with connecting wires.I want to connect it to my beaglebone black and use it with webcam. Please tell me how to attach it?

Fortunately most laser pointer are powered by 3V, so you can just use a FET and one of the IO ports.

If you need a schematic, just respond to this post J