A short time ago we had a toilet problem with mum. Basically, she got up in the night to pee and missed so it was all over the floor. There were little puddles previously but after this event we spoke to our Community Matron and she got us a prescription fro a commode.
We picked it up and as usually happens with these things mum was ok so it just sat there for the right moment. Well, now is the right moment.
Recently, mum has been tired and last night would not take her tablets. Well, at least not from me. The long and the short of it was she decided to go to bed very early. As she was so tired she got into bed fully clothed. This morning I realised I had not heard her in the night and when I went to wake her up I realised why - damp patch on floor. Damp slippers and skirt she was wearing in bed. She had put the slippers and skirt in waste paper bin by her bed - so not so daft. Once I had given mum her morning tablets and cleaned everything up I mentioned the commode. Mum thought it was a good idea.
As I sit here typing this, the commode is near mum's bed (with a mat under it just in case). So hopefully, that problem is solved, for now. We have yet to see how this works in the middle of the night but at least the commode is in place. This is in itself a small victory
I cannot imagine what you are going through with your problem but my initial thoughts are continence aids, hydration and a good diet. Personally, I would not use laxatives unless you really have to.