So Potiphar was very happy with Joseph. He allowed Joseph to work for him and to help him rule the house. Joseph was the ruler over everything Potiphar owned.
The commander of the guards trusted Joseph with everything that was in the prison. This happened because the Lord was with Joseph. The Lord helped Joseph be successful in everything he did.