I've never seen a room safe hat is large enough for a laptop.
Last hotel we were in the room safe wasn't attached, it could be picked up and taken. But it could be locked.
For a laptop, get a locking cable and lock it to the mattress frame or TV bracket or something that can't easily be moved out. Kensington has many of them, they are under $50.