Make a rope and attach it to a cube

Hello, I’m trying to make a rope and attach it to a cube with the physics engine and I can’t find a useful tutorial.
¿can I get any help with this?