Napoleon with custard

Ingredients:

For puff pastry:
Flour - 500 g
Butter - 400 g
Water - 250 ml
Salt - a pinch
For the custard:
Milk - 1 liter
Eggs - 6 pcs.
Sugar - 300 g
Flour - 100 g
Vanilla extract - 2 tsp.
Butter - 200 g
Preparation:

Preparation of puff pastry:

In a bowl, mix the flour and salt.
Add the diced cold butter and knead with the flour until coarse crumbs.
Gradually pour in the cold water and knead the dough.
Form the dough into a ball, wrap in clingfilm and place in the refrigerator for 1 hour.
Divide the dough into 8 pieces and roll each piece out into a thin layer.
Bake the dough sheets at 200 degrees Celsius until golden.

Preparing the custard:

In a saucepan, mix eggs and sugar until smooth.
Add the flour and vanilla extract and stir.
Gradually pour in the milk, stirring constantly.
Place the saucepan over medium heat and cook, stirring constantly, until the cream thickens.
Remove the cream from the heat and add the butter, stir until smooth.
Allow the cream to cool.
Assemble the cake:

Spread a layer of custard on the first layer of pastry.
Repeat with all layers of pastry.
Brush the top and sides of the cake with custard.
Sprinkle the cake with crumbs from the remaining pastry pieces.
Serving:

Place the cake in the refrigerator for a few hours before serving.