I have been constipated, and I just pass mucus even after taking laxatives. Please help

Why am I having mucus in my stools?