Question: how do you put your phone on do not disturb?
Answer: Head to Settings > Do Not Disturb to customize it. In particular, you'll probably want to adjust the following options: Scheduled: Turn this on, and set it to whenever you go to bed and wake up. Notifications will still appear on the lock screen; they just won't make noise.