How do you train your infant to sleep through the night?

For me it’s the opposite, if my daughter naps well during the day and sleeps on time she wakes up less frequently. If she’s over-tired she’d be waking up every 30 mins!