What you eat can affect how you sleep. Certain foods may help you get a better night's sleep, and require fewer sleep aids like melatonin.