01 - Preheat oven to 350°F. Grease and line two 9-inch round cake pans with parchment paper.
02 - Whisk together flour, baking powder, baking soda, salt, cinnamon, nutmeg, ginger, and cloves in a large bowl.
03 - In a separate bowl, beat sugar, vegetable oil, applesauce, eggs, and vanilla extract until smooth.
04 - Gradually add dry ingredients into the wet mixture, stirring just until combined.
05 - Fold in grated carrots, nuts, and raisins if using, ensuring even distribution.
06 - Evenly divide batter between prepared pans and bake for 35 to 40 minutes, or until a toothpick inserted in the center comes out clean.
07 - Allow cakes to cool in pans for 10 minutes, then transfer to a wire rack to cool completely.
08 - Beat cream cheese and butter until smooth and creamy. Gradually add powdered sugar, vanilla extract, and a pinch of salt, beating until fluffy.
09 - Spread frosting between the cake layers, then cover the top and sides evenly.