laxatives during breastfeeding?

gg • Married💞 Momma of a little boy & glitter girl. Dog mom! 🐶
Are you allowed to take any type of laxative nor stool softener during breast feeding? I have gastroparesis and my sickness often deals with taking certain medications. I want to be able to breast feed but want to make sure my baby will be safe and healthy while I do so!