01 -
Preheat oven to 350°F (175°C). Grease two 9-inch round cake pans and line the bottoms with parchment paper for easy removal.
02 -
In a medium bowl, whisk together the flour, baking soda, baking powder, cinnamon, nutmeg, and salt until well combined. Set aside.
03 -
In a large bowl, beat the brown sugar, granulated sugar, and vegetable oil using an electric mixer until well combined. Add eggs one at a time, beating well after each addition. Stir in the vanilla extract.
04 -
Fold the grated carrots, sour cream, and chopped pecans (if using) into the wet mixture. Gradually add the dry ingredients to the wet ingredients, mixing just until combined. Do not overmix.
05 -
In a separate bowl, beat the softened cream cheese until smooth. Add the sugar and beat until well combined. Mix in the vanilla extract and egg, beating until smooth and creamy.
06 -
Divide half of the carrot cake batter between the two prepared pans, spreading it evenly. Spoon the cheesecake filling on top of the batter in each pan, spreading it evenly but leaving about a half-inch border around the edges. Top with the remaining carrot cake batter, covering the cheesecake filling completely.
07 -
Bake in the preheated oven for 30-35 minutes, or until a toothpick inserted into the center comes out clean or with just a few moist crumbs. The cakes should spring back when lightly touched.
08 -
Allow the cakes to cool in the pans for 15 minutes. Then, run a knife around the edges and carefully turn out onto wire racks to cool completely before frosting.
09 -
In a large bowl, beat the softened cream cheese and butter until smooth and creamy, about 2-3 minutes. Gradually add the powdered sugar, cinnamon, and vanilla extract, beating until well combined. Add milk one tablespoon at a time until desired consistency is reached.
10 -
Place one cake layer on a serving plate or cake stand. Spread a layer of the cinnamon cream cheese icing on top. Place the second cake layer on top. Frost the top and sides of the cake with the remaining icing.
11 -
If desired, decorate the top of the cake with chopped pecans and a light dusting of cinnamon for a finishing touch.
12 -
For best flavor and texture, refrigerate the cake for at least 30 minutes before serving to allow the frosting to set. Let slices come to room temperature for about 15 minutes before serving for optimal flavor.