Question: When did Hashem (G-d) teach Moshe (Moses) the laws, and when did He teach them to the Jewish People.
Answer: Moshe learned the entire Torah at Sinai, and when he came down he taught it to the Jewish People. By the entire Torah, we are referring to all the laws of the Torah.
As for the written Torah, there is a Debate (See Talmud Gitin 60) as to whether that was dictated to Moshe throughout the 40 years, or all given at the end of the 40 years.
All the best,