Soak dried porcini in 250ml boiling water for 15 minutes.
Spoon out the porcini mushrooms, roughly chop and keep the liquid for cooking the pie filling. Set them aside until needed.
Melt the butter in a large pan or wok on medium heat and then add the leeks.
Sauté the leeks for a few minutes, until slightly softened.
Turn the heat up and then add the mushrooms to the pan, sauté until softened and released their juices.
Add the carrots along with the garlic and cook for a few minutes, until the liquid from the mushrooms has evaporated.
Sprinkle on the flour and then add the porcini mushrooms. Cook for a minute, stirring continuously.
Pour in the milk and the soaking liquid from the mushrooms stirring all the time to avoid lumps, continue to cook for a few minutes, until bubbling and the sauce has thickened.
Add the thyme, salt, freshly ground black pepper and chilli flakes (if using) to finish the filling off.
Transfer the filling to a 25 cm (10") diameter pie dish and let it cool down to room temperature before assembling your pie.