No body knows the secret formula to make a baby sleep through the night. Babies take at least a year for the proper development of their sleep cycles. That said, solids do make babies sleep for a longer time as they keep their tummies full. Try it and you will come to know.