Heat the oil in a wide saucepan and add the onion. Fry until softened then add the garlic and cumin, ground coriander and harissa and cook for a minute.
Add the carrot and pumpkin and stir to coat in the spices.
Add the tomatoes and apricots and cook for 15 minutes until thickened, then add the chickpeas, lentils and coriander. Season to taste with salt.
Put onto a wide-lipped tray to cool down quickly (sometimes I put it in the freezer for 10-15 minutes if I'm in a rush). Once cool, add the feta, if using.
Use baking paper to line the base of either a springform cake tin (approx 22-24cm) or one with a loose base and grease the sides (you could also do this in a tart or baking tin).
Brush a sheet of filo with oil, then top with another sheet and brush with oil. Put into the tin allowing the pastry to drape over the edges of the tin.
Repeat three more times with the filo (using 8 sheets in total) overlapping them slightly so both the sides and the base are evenly covered.
Put the filling in the tin and fold over the edges of the pastry.
Brush another two sheets of filo with oil, scrunch them up and put onto the top. Sprinkle with sesame seeds.
Put into the fridge for 30 minutes.
Heat the oven to 180°C. Bake for 35 minutes.
Cool for a few minutes before removing from the tin and slicing.
Serve with a green salad and yoghurt alongside.