Sleeping through the night

How did you get your baby/ toddler to sleep through the night??

My 2yr old is still waking up multiple times and I’m desperate and sleep deprived for help