Different hernias have different treatments. Inguinal hernias are treated in several different ways. There's a laparoscopic treatment, where doctors put small incisions in the abdomen, blow the belly up full of air, and put a camera inside. While looking at the hernia from the inside, doctors put a mesh patch over the defect to keep the organs from protruding out through the muscle wall.
This also can be done in a minimally invasive manner with robotic surgery. Or, it can be performed in an old-fashioned, traditional approach, with a small incision on the anterior abdomen. Doctors can cut down directly to the muscle tear, sew that up and put a mesh patch right over the top of it to help reinforce it.