Before! The tooth paste puts a protective layer on your teeth. This way the food can't attack your teeth as much.
If, on the other hand, you eat first and brush after that, you will do damage to your teeth, because the acid substances in the food will have full access, and on top op that you will attack your teeth with your toothbrush when all those substances are on your teeth.
my dentist, for real!