Preheat oven to 180°C / 350°F and lightly grease a baking dish
Layer sliced sweet potatoes in the dish and drizzle with olive oil
In a bowl, whisk eggs, milk, garlic, salt, and pepper
Add spinach and half of the cheese to the mixture
Pour mixture over the sweet potatoes and sprinkle remaining cheese on top
Bake 30–35 minutes until the potatoes are tender and the top is golden
