Layer thinly sliced ham onto a seasoned and oiled baking sheet.
Add grated cheese, shallots, more cheese and cheese slices.
Drape the mixture in squares of puff pastry.
Brush with egg wash and bake until sautéed.
Flip the pastries over and lay a fried egg on top.
Sandwich the pastries together to create the upside down, puff pastry croque madame sandwiches.
