01 - Preheat oven to 350°F. Grease and line two 9-inch round cake pans with parchment paper.
02 - In a medium bowl, whisk together flour, baking powder, baking soda, salt, cinnamon, nutmeg, and ginger.
03 - In a large bowl, whisk granulated sugar, brown sugar, vegetable oil, eggs, and vanilla extract until smooth and well blended.
04 - Gradually add the dry mixture to the wet ingredients, stirring gently until just combined.
05 - Fold in grated carrots and, if desired, nuts and raisins until evenly distributed.
06 - Evenly pour batter into prepared pans and smooth the surfaces.
07 - Bake for 40 to 45 minutes or until a toothpick inserted in the center exits clean.
08 - Allow cakes to cool in pans for 10 minutes, then transfer to a wire rack to cool completely.
09 - Beat cream cheese and butter together until smooth. Add powdered sugar, vanilla, and salt; beat until light and fluffy.
10 - Spread a layer of frosting on one cake layer, top with the second, then frost the top and sides evenly.
11 - Decorate with additional nuts or carrot shavings if preferred.