Preheat oven to 350°F (175°C) and grease a baking dish
Grate zucchini and place in a bowl
Sprinkle salt over zucchini and let sit for 10–15 minutes
Squeeze out as much moisture as possible using a towel
Heat oil or butter in a skillet over medium heat
Sauté onions and garlic until soft and fragrant
Add zucchini and cook briefly to remove remaining moisture
In a separate bowl, whisk eggs, cream, salt, pepper, and seasoning
Stir in shredded cheese
Spread zucchini mixture evenly in baking dish
Pour egg mixture over the top
Sprinkle parmesan cheese on top
Bake for 35–45 minutes until center is set and top is golden
Let cool for 10–15 minutes before slicing