01 -
Preheat the oven to 350°F. Grease and flour a 9 by 13-inch baking pan or line with parchment paper for easy removal.
02 -
In a medium mixing bowl, whisk together the flour, baking powder, baking soda, salt, cinnamon, and nutmeg until well combined.
03 -
In a large mixing bowl, whisk together granulated sugar, brown sugar, vegetable oil, eggs, and vanilla extract until the mixture is smooth and fully blended.
04 -
Stir in the grated carrots and drained crushed pineapple. If using, fold in chopped walnuts or pecans and raisins for added texture and flavor.
05 -
Gradually add the dry ingredients to the wet mixture, stirring gently with a spatula until just combined. Avoid overmixing to maintain cake tenderness.
06 -
Pour batter evenly into the prepared pan. Bake for 35 to 40 minutes or until a toothpick inserted into the center emerges clean. Let the cake cool completely in the pan on a wire rack.
07 -
In a large bowl, beat the softened cream cheese and unsalted butter until creamy and smooth. Add vanilla extract and a pinch of salt. Gradually incorporate powdered sugar, 1/2 cup at a time, mixing until the frosting reaches a smooth and spreadable consistency.
08 -
Once the cake is fully cool, spread the cream cheese frosting evenly over the surface. Garnish with chopped nuts, toasted coconut, or extra grated carrot as desired.