01 -
Preheat oven to 350°F. Grease and flour a 9×13-inch baking pan or line with parchment paper for easy release.
02 -
In a medium bowl, whisk together all-purpose flour, baking powder, baking soda, salt, ground cinnamon, and ground nutmeg until fully blended.
03 -
In a large bowl, whisk together granulated sugar, brown sugar, vegetable oil, eggs, and vanilla extract until mixture is smooth and cohesive.
04 -
Stir in finely grated carrots and drained crushed pineapple. Fold in chopped nuts and raisins if using.
05 -
Gradually add dry ingredient mixture to wet mixture. Gently stir with a spatula until just combined to ensure a tender cake; do not overmix.
06 -
Pour batter into prepared pan and smooth surface. Bake for 35 to 40 minutes or until a toothpick inserted in the center comes out clean. Allow cake to cool completely in the pan on a wire rack.
07 -
In a large bowl, beat softened cream cheese and butter together until creamy. Add vanilla extract and a pinch of salt. Incorporate powdered sugar gradually, mixing until frosting is smooth and spreadable.
08 -
Spread cream cheese frosting evenly over completely cooled cake. Garnish with chopped nuts, toasted coconut, or additional grated carrot as desired.