To go through the mill

to experience the suffering or discipline necessary to bring one to a certain degree of knowledge or skill, or to a certain mental state.

See also: Mill