Before. There's a reason why your breath isn't fresh in the morning if you brushed the night before. All that toothpaste has been used to neutralise sugars and it has also been swallowed.
That means there is bacteria in your mouth that has doubled over 8 hours. Eating before brushing makes it worse, because your enamel is exposed, so while you crunch away, it's causing minor damage.