Woke up and couldn’t breathe

Patient: I recently had got laryngitis (not sure if I spelled that right) and was sick with a cold. One night I suddenly woke up and could not breathe. It felt like my airway had been closed. Then at a different time I was coughing and had the same thing happen. this also happened the last time Ihad a cold. what is happening?