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