Here's the thing:
Just because a character has a family doesn't mean you need to show that family in happy bliss in every issue. Or that you need to focus on family drama for drama.
That's the trap Spider-Man books fell into when editorial first decided they needed to get rid of the marriage and were casting about for ways to do that. You can see the switch, around the time they stopped giving MJ a iife of her own (getting blacklisted by Caesar, trying to figure out her career, working on Secret Hospital) and made her into a cigarette-smoking, window standing, handwringing figure in an attempt to get readers to stop liking her so when they did remove the marriage, people wouldn't complain (ha ha joke's on you, editors at the time). It says a lot for MJ that she remained incredibly popular and her character was able to withstand these and many more character assassination attempts.
So if a character is married and has a child - don't use the family for drama, but give them external obstacles to face. Send the kid to day care/school. Give the spouse her own career and her own life. The hero can still have his adventures and the family doesn't even have to appear on panel. Then bring the family in when they woud organically appear in the story.
The problem is the more hack-ish writers will lean on, "oh no things look dire for Spidey! He spends his last minutes regretting leaving his child without a father!" And sure, it's natural he would think that, but that hasn't have to be the climax of every single story. Be imaginative, writers! As it is, without a wife and child, we're now treated to Peter whining over and over he's going to die (and needing rescue since he apparently has no one to think of to encourage him to keep fighting) - or actually being "killed" in Slott-Man - which IMO is a much worse look for the character.