Matthew Morrison has settled his legal battle with his ex-acting coach Peter Mattaliano.

The 38-year-old actor was accused of not paying commission for over 20 years by Peter, who demanded $182,000 from 'The Good Wife' star, but has now ended the court case by paying the debt he owed.

According to, the pair resolved the ongoing issue in a mediation session on October 27, although the details about their settlement have yet to be revealed.

However, Matthew has previously insisted he had never signed a deal with Peter agreeing to pay the trainer two-and-half per cent of the profits he earned from the television shows and films he starred in, which led him to file a lawsuit forbidding Peter from using any images of him without his permission.

Peter retaliated by launching a counter-suit against the star because he trusted in the legitimacy of their agreement, which was struck up in 2005 despite being amended over the next 10 years.

Meanwhile, the hunky actor - who married Renee Puente in 2014 - has revealed is constantly working ''crazy hours'' because he is ''very passionate'' about his acting career and just wants to be recognised as a ''good human being''.

Speaking previously, the former 'Glee' actor - who played the role of Will Schuester in the Fox series for six years - said: ''I always try to not let the business define who I am and I try to have my own identity.

''And I am a laid-back kind of just, appreciative guy. And I work a lot of crazy hours and do a lot of crazy things. But I'm very passionate about what I do. At the end of the day, you just strive to be a good human being and always try to give back. That's my motto.''