Laxatives as weight loss

I have a bad habit of taking laxatives to make myself feel better. I know it's bad but am I dreaming. Does it work