A Polish national caught with €2,000 of cannabis was supplying the drug to his friends, the District Court heard.
Seweryn Hajdenrajch (37) with an address at 3 The Crescent, Kilminchy, Portlaoise, was last week charged with drug possession, and having drugs for sale or supply, at his home on July 23 last.
Sgt Jason Hughes gave evidence that the accused's house was searched by gardaí and cannabis resin and herb to a value of €2,000 was found.
The accused made admissions that he had been supplying the drug to his friends.
He had no previous convictions.
Defence, Ms Josephine Fitzpatrick said that the accused, a Polish national with a partner and two children living in Ireland 13 years, had since turned his life around and stopped what he was doing.
The accused had written a letter to the court, as had his wife, said Ms Fitzpatrick.
He was hoping to get into security work and will be garda vetted for employment, so perhaps the court could deal with the matter without imposing a custodial sentence, Ms Fitzpatrick concluded.
Judge Staines asked the State was it satisfied the accused had stopped.
Garda Donal Cahill replied that the accused had not come to garda attention since.
Judge Staines adjourned the matter to February 28 next year for a probation report on the accused.