Tips to get 3 month to sleep 8 hours?

Ar

Any mamas out there who have tips to encourage baby to sleep at least 8 hours? I’m desperate!! Mine slept for 9-10 hours a few weeks ago for three nights in a row but I haven’t been able to crack the code. He will often do 6 hour stretches then 3 or even 2 hours 😴 do you have any tips to share?? 🙏