Preheat the oven and prepare the foods.
Fry the onions in a frying pan in olive oil until soft, then add the garlic and mix.
Add chickpeas, tomato sauce, salt, oregano and red pepper. Stir, cook 3 minutes until thickened.
Add spinach and cook for another minute.
Make 4 indentations in the sauce and break the eggs into it. Sprinkle with parmesan and transfer the pan to the oven. Cook 10 minutes until egg whites are ready. The yolks should remain soft.
Remove from the oven, sprinkle with basil, serve with slices of baguette.