Staying through cheating

This is a serious question and needs some good honest advice. Has anyone had a significant other cheat in the relationship and stay and work through it? There are kids involved and years of relationship if that helps. Just need some honest answers if anyone has gone through this and made it work. What were the struggles