01 - Preheat oven to 350°F. Grease and flour two 9-inch round cake pans or line with parchment paper.
02 - Whisk together flour, baking powder, baking soda, salt, cinnamon, and nutmeg in a large bowl until thoroughly blended.
03 - Beat granulated sugar, brown sugar, oil, eggs, and vanilla in another bowl until well combined and slightly pale in color.
04 - Gradually add dry ingredients to wet mixture, mixing just until incorporated. Do not overmix.
05 - Fold in grated carrots, chopped walnuts, drained pineapple, and raisins if using until evenly distributed throughout the batter.
06 - Divide batter evenly between prepared pans and smooth tops with a spatula.
07 - Bake for 35-40 minutes until a toothpick inserted into the center comes out clean.
08 - Let cakes cool in pans for 10 minutes, then turn out onto wire rack to cool completely before frosting.
09 - Beat cream cheese and butter together until smooth and creamy. Gradually add powdered sugar, vanilla, and salt, beating until fluffy.
10 - Spread frosting layer on top of one cooled cake. Place second layer on top and frost top and sides completely.
11 - Decorate with additional chopped walnuts or carrot curls as desired.