Preheat the oven to 350°F.
Heat the olive oil in a large cast-iron skillet over medium-high heat. Add the garlic and onion, and cook, stirring occasionally for 5 minutes. Add the zucchini and tomatoes and cook for 5 minutes longer.
While the vegetables are cooking, whisk the eggs together in a medium bowl. Add the ricotta, lemon juice, and season with salt and pepper. Stir until combined.
Add the eggs to the pan and sprinkle the basil and oregano leaves over the top. Cook for 4 minutes.
Place in the oven and bake for 35 to 40 minutes. Remove from the oven. Slice into wedges and serve immediately.