Preheat your oven to 400 F degrees. Butter a pie dish.
Evenly spread the broccoli in the dish and top it evenly with the grated cheese.
Make the custard mixture by whisking together the eggs, salt, black pepper, nutmeg, garlic, milk, and shallots. Pour the custard into the dish and bake 30 minutes, until the center is set.