01 - Preheat oven to 350°F. Grease and line the bottoms of three 8-inch round cake pans with parchment paper.
02 - In a medium bowl, whisk together flour, baking powder, baking soda, salt, cinnamon, nutmeg, ginger, and cloves.
03 - In a large bowl, whisk together granulated sugar, brown sugar, and oil until combined. Add eggs one at a time, mixing well after each addition. Stir in vanilla extract.
04 - Add the dry ingredients to the wet ingredients and mix until just combined. Do not overmix.
05 - Fold in grated carrots, nuts, pineapple, and raisins, if using.
06 - Divide the batter evenly among the prepared pans. Smooth the tops.
07 - Bake for 30-35 minutes, or until a toothpick inserted in the center comes out clean.
08 - Cool cakes in pans for 10 minutes, then turn out onto wire racks to cool completely.
09 - Beat cream cheese and butter together until smooth and fluffy. Gradually add powdered sugar, vanilla, and salt. Beat until light and creamy.
10 - Place one cake layer on a serving plate. Spread a generous layer of frosting on top. Repeat with second and third layers, then frost the sides and top of the cake.
11 - Decorate with extra nuts or carrot curls if desired. Refrigerate for 30 minutes before slicing for neat layers.