01 - Preheat oven to 350°F. Grease and line two 8-inch round cake pans with parchment paper.
02 - In a medium bowl, whisk together flour, baking powder, baking soda, salt, cinnamon, nutmeg, cloves, and ginger.
03 - In a large bowl, beat granulated sugar, brown sugar, and vegetable oil until well combined. Add eggs one at a time, mixing thoroughly after each addition. Stir in vanilla extract.
04 - Gradually fold dry ingredients into the wet mixture until just combined, taking care not to overmix.
05 - Fold in grated carrots and, if desired, chopped nuts and raisins.
06 - Divide batter evenly between prepared pans and smooth the surface.
07 - Bake for 35 to 40 minutes, or until a toothpick inserted in the center comes out clean.
08 - Allow cakes to cool in pans for 10 minutes, then remove and transfer to a wire rack to cool completely.
09 - Beat softened cream cheese and butter until smooth. Gradually add powdered sugar, vanilla, and salt, beating until light and fluffy.
10 - Spread frosting on top of one cooled cake layer. Place second layer on top and frost the top and sides evenly.
11 - Garnish with extra nuts or a light dusting of cinnamon as desired. Slice and serve.