The composite is set and hardened during your appointment, so you can eat on it straight away. However, it is best to avoid very hard foods or chew on the opposite side of your mouth for the first couple of days, to give it time to settle.