I saw something in a magazine that looked like a good idea. It's a holster that is held by a flap you insert between your mattress and box spring. It also has a ring for your Mag-Lite and a pocket for a phone.
Those are three things I have next to my bed, except lying on the floor.
I know some people prefer to keep their firearm a ways from the bed, so they have to be "up" before getting hold of a weapon.