01 - Preheat the oven to 350°F. Grease and line two 9-inch round cake pans.
02 - Whisk together all-purpose flour, baking powder, baking soda, salt, ground cinnamon, nutmeg, ginger, and cloves in a large bowl.
03 - In a separate bowl, beat granulated sugar, vegetable oil, applesauce, eggs, and vanilla extract until smooth.
04 - Gradually add the dry mixture to the wet ingredients, mixing until just combined.
05 - Fold in finely grated carrots along with optional chopped nuts and raisins if desired.
06 - Evenly distribute the batter between the prepared pans and bake for 35 to 40 minutes until a toothpick inserted in the center comes out clean.
07 - Allow cakes to cool in their pans for 10 minutes before transferring to a wire rack to cool completely.
08 - Beat cream cheese and butter together until creamy. Gradually add powdered sugar, vanilla extract, and salt, beating until light and fluffy.
09 - Spread frosting between layers, then cover the top and sides of the cooled cakes evenly.