See your surgeon. Unfortunately, pain is expected after hernia repair, whether performed laparoscopically or "open". Most people are pain-free within a few weeks after hernia surgery. If your repair was done a while ago and you are still in pain, you need to see your surgeon to help get to the bottom of this. I hope it gets better soon.
Time, meds, activity. It depends on when the hernia was repaired. It is usually very painful, and you should be about 60-75% recovered by around 3 weeks. If not, see your surgeon.