Laser shooting functionality

Is there any example of laser shooting?so I could test it and see how is it working thanks

You can use raycast for the logic and a cylinder with a shader for the laser itself.