How to get baby to sleep through the night?

“Hi mamas! I am looking for advice. I have a 2 year old that hasn’t slept through the night since she was 3months old. She is still breastfeeding and will be on the boob for what feels like most of the night and even after she falls asleep, if i unlatch and try to roll over and get some sleep myself, she wakes up and starts fussing for the boob again. I am so ready to be done breastfeeding. Has anyone else dealt with this? If so, what worked for you?”