Start by getting everything ready. Heat your oven to 175°C and lightly grease your cake pan with cooking spray. Set it aside while you prepare the batter.
In a large bowl, mix together the flour, cinnamon, baking powder, baking soda, and salt. Whisk until everything is evenly combined and there are no lumps.
In a separate bowl, beat the eggs with the granulated sugar until the mixture looks pale and slightly thick. Slowly add the vegetable oil while whisking, then stir in the vanilla extract.
Next, add the dry ingredients to the wet mixture a little at a time. Stir gently just until everything comes together. Be careful not to over mix, as this can make the cake dense.
Once the batter is ready, folds in the shredded carrots, raisins, and toasted pecans. Mix just enough to spread them evenly throughout the batter.
Pour the batter into the prepared pan and smooth the top with a spatula. Place it in the oven and bake for 45 to 50 minutes. The cake is done when a toothpick inserted into the center comes out clean.
Take the cake out of the oven and let it rest in the pan for about 10 minutes. Then remove it from the pan and place it on a cooling rack. Allow it to cool completely before adding the frosting.
To make the frosting, beat the cream cheese and butter together until smooth and creamy. Gradually add the powdered sugar, mixing well after each addition. Stir in the vanilla and a pinch of salt. Once the cake has fully cooled, spread the frosting evenly over the top.