It was on their second trip that Joseph told his brothers who he was, and the king learned about Joseph's family.
Then Joseph said to his brothers and to everyone who had come with them: I must go and tell the king that you have arrived from Canaan.