01 -
Set your oven to 350°F (175°C) and get two 9-inch cake pans ready by greasing and dusting them with flour.
02 -
In a big mixing bowl, toss in the flour, sugar, salt, cinnamon, nutmeg, ginger, baking soda, and baking powder. Give it a good whisk.
03 -
Pour the eggs and oil into the dry mixture and stir until it's all blended nicely.
04 -
Fold in the grated carrots, drained pineapple, vanilla, and walnuts if you want to use them.
05 -
Scoop the batter evenly into your prepared cake pans.
06 -
Pop the pans into the oven and bake for 30 to 35 minutes. Check with a toothpick—it should come out clean.
07 -
Once baked, let the cakes rest in the pans for about 10 minutes before moving them to a wire rack to cool completely.
08 -
When they're fully cool, spread cream cheese frosting over them.