Pre-heat oven to 170 degrees and grease the baking dish.
Heat the oil in a pan and fry the potato cubes until almost cooked.
Add the onions into the pan and cook until translucent.
Add the ras el hanout and paprika.
Pour the diced chicken, some salt and peas into the pan, and allow to cook for a few minutes, then remove from heat and allow to cool.
Beat the eggs in a large mixing bowl with the grated cheddar cheese, pepper flakes and coriander. Stir in the chicken and potato mixture; taste and add some salt to taste if required.
Pour the content of the mixing bowl into the greased baking dish.
Place inside the oven and allow to cook until the centre is set; and the top has a golden-brown appearance. This should take 30-40 mins.
Remove from the oven and serve.