A dad who dealt Class A drugs from the home where he lived with his partner and four children has been jailed.