01 -
Set oven to 350°F and generously grease and flour two 9-inch round cake pans.
02 -
In a large mixing bowl, whisk together all-purpose flour, baking powder, baking soda, ground cinnamon, ground nutmeg, and salt until combined.
03 -
In a separate bowl, blend granulated sugar, eggs, and vegetable oil until smooth.
04 -
Add shredded carrots and drained crushed pineapple to the wet mixture and stir well.
05 -
Gradually incorporate the dry ingredients into the wet mixture, stirring until just combined. Avoid overmixing.
06 -
If desired, gently fold chopped walnuts into the batter for texture and flavor.
07 -
Evenly split the batter between the prepared cake pans.
08 -
Bake in preheated oven for 30 to 35 minutes, or until a toothpick inserted in the center of each cake emerges clean.
09 -
Remove cakes from oven and let cool in pans for 10 minutes. Transfer cakes to wire racks to cool completely.
10 -
In a medium bowl, beat softened cream cheese and butter until creamy. Gradually add powdered sugar and vanilla extract, mixing until light and fluffy. Adjust consistency with milk if necessary.
11 -
Once cakes are fully cooled, place one cake layer on a serving platter and spread a generous amount of cream cheese frosting over the top.
12 -
Position the second cake layer on top and frost the top and sides for a smooth, even finish.