A North Carolina State Highway Patrol trooper who died in the line of duty earlier this month was laid to rest after a funeral service in Cary Wednesday.