Feed on demand
Early on it is best to feed on demand.
..Meaning feed the baby as often as the baby wants. Start very early however in establishing a bedtime routine. Bath, breast, bed. Bathe the baby, breastfeed and then immediately put the baby to bed. Lights out, people out of room, etc. It may take a while for your baby to get the message but if you stick with it the baby learns to fall asleep on its own.