Bring out all supplies and measure all ingredients.
Grate carrots with a box shredder or food processor and set aside.
Preheat the oven to 350°F.
Spray two 9-inch cake pans with baking spray. Using a pastry brush, spread the spray all over the inside of the pans to evenly coat or cover the bottom of the pan with parchment paper. Set aside.
In a large bowl, whisk together the flour, cinnamon, baking soda, salt, nutmeg, and cloves.
Whisk until blended.
Place the butter and sugars in a stand mixer with the paddle attachment or in a large bowl using an electric hand mixer.
Mix until smooth.
Add eggs and vanilla extract. Blend well.
Whisk in dry ingredients to the wet and stir until just combined, scraping down the sides.
Stir for about 30 seconds until everything is mixed in well.
Add grated carrots, pineapple, raisins and half of the walnuts.
Stir until combined.
Divide the batter between the two cake pans. Smooth out the top and bake for 30-35 minutes or until a toothpick inserted in the center comes out clean.
Let cool for 10 minutes in the pans. Invert the pans and transfer to a wire wrack. Cool completely.