1. Preheat oven to 180c and grease a 9-inch round baking dish with oil.
2. Heat the olive oil in a large frying pan over a medium-high heat.
3. Fry the onions until soft and then add the garlic and fry for another minute.
4. In a separate bowl combine eggs, red pepper, rocket, mozzarella, pesto, salt and pepper.
5. Combine the 2 mixtures then pour into the prepared baking dish.
6. Bake for 40-45 minutes or until soft.
7. Leave to cool for about 5 minutes before serving.