1Heat the oven to 180 C and brush a 23 cm round baking dish with some of the melted butter.
2Cook the onions in 1 tbsp of the butter over medium heat for 5 minutes until soft, then add the squeezed spinach and cook for 3 minutes until dry.
3Whisk the ricotta, eggs, parmesan and black pepper together, then stir in the spinach and onions.
4Layer 4 filo sheets in the dish, brushing each with melted butter and letting the edges hang over the sides.
5Spread the ricotta and egg filling over the filo, then fold the overhanging edges in over the top.
6Layer the remaining 4 filo sheets over the filling, brushing each with butter, and tuck in the edges.
7Bake for 35 to 40 minutes until deep golden and a knife inserted in the centre comes out with no wet egg. Rest for 10 minutes before cutting into 6 pieces.
8Food safety: Cook eggs until the white is set. Keep leftovers in the fridge within 2 hours.