Add eggs, flour, and spices to the grated zucchini. If necessary, a little water.
Mix the dough thoroughly.
Spoon the dough into the pan over the entire surface of the bottom. Fry the pancakes for 3 minutes on each side. I got 5 pancakes.
Finely chop the garlic. Add mayonnaise and cheese to the garlic. Stir thoroughly. The resulting mixture will be used as a filling for the cake.
Cut tomatoes into rings.
Take a pancake, cover it with filling. On the filling over the entire surface, put circles of tomatoes. On top of the pancake. Continue until you run out of pancakes.
Before serving, cool the cake in the refrigerator for 30 minutes.