How can get the reflection of an object and a cubemap

I was wondering what technique and its implementation I could use to get the reflection of other objects in the scene. I used the learnopengl implementation for the cubemap reflection and the fresnel effect for the refraction for this