Prepare the Cake Batter:
Preheat your oven to 350°F (175°C). Grease and line two 9-inch round cake pans with parchment paper.
In a medium bowl, whisk together the flour, baking powder, baking soda, salt, cinnamon, nutmeg, and ginger. Set aside.
In a large bowl, beat the granulated sugar, brown sugar, and vegetable oil until well combined. Add the eggs one at a time, mixing well after each addition. Stir in the vanilla extract.
Gradually add the dry ingredients to the wet mixture, mixing until just combined. Fold in the grated carrots, crushed pineapple, nuts, and raisins (if using).
Bake the Cakes:
Divide the batter evenly between the prepared cake pans.
Bake for 25–30 minutes, or until a toothpick inserted into the center comes out clean.
Allow the cakes to cool in the pans for 10 minutes before transferring them to a wire rack to cool completely.
Make the Cream Cheese Frosting:
In a large bowl, beat the softened butter and cream cheese until smooth and creamy.
Gradually add the powdered sugar, one cup at a time, and beat until well combined. Stir in the vanilla extract.
Assemble the Cake:
Place one cake layer on a serving plate and spread a thick layer of cream cheese frosting on top.
Add the second cake layer and frost the top and sides of the cake.
Add Garnish:
Decorate the cake with chopped nuts, shredded coconut, or carrot-shaped fondant decorations for a festive touch.