01 -
Preheat the oven to 350ºF. Spray two 9-inch cake pans with nonstick spray. Line the bottom of pans with cut-to-size wax paper or parchment and spray the paper. Set aside.
02 -
Whisk together the flour, baking powder, baking soda, salt, and spices in a large bowl. Set aside.
03 -
In a medium bowl, beat together the oil, brown sugar, granulated sugar, eggs, and vanilla with a hand mixer until well combined, about 1-2 minutes. Pour the wet ingredients into the dry ingredients and beat well with a mixer.
04 -
Stir in the grated carrots, drained pineapple, and optional chopped nuts or raisins until well combined.
05 -
Divide the cake batter into the prepared pans. Bake for 30-35 minutes or until a toothpick inserted in the center comes out clean. For gluten-free flour, bake 2-3 minutes longer. Cool the cake in pans for 10 minutes, then invert onto a wire rack to cool completely before frosting.
06 -
Using a stand mixer with a paddle attachment, beat the cream cheese with powdered sugar and vanilla. Switch to the whisk attachment and slowly add the heavy cream while beating on low speed. Increase the speed to medium-high and beat until light and fluffy, about 3-4 minutes.
07 -
Place one cake layer on a cake stand or serving platter. Tuck strips of waxed paper under the cake to keep the platter clean. Spread a generous amount of frosting on the first layer using an offset spatula. Add the second cake layer on top and spread frosting over the top and sides. Decorate with additional nuts, grated carrots, or coconut as desired. Refrigerate leftovers.