ways for my baby to sleep thru the night

Lindahxx
Okay so my baby is almost 7 months and her sleep is bad and I really want her to sleep thru the night or atleast for like a good 6-7 hours is fine any ways I can make her have a good sleep