Preheat your oven to 350°F (180°C).
Grease and flour three 9-inch cake pans and set aside.
In a medium bowl, whisk together the flour, baking soda, baking powder, salt, and cinnamon until well combined.
In a large bowl, beat the sugar and vegetable oil together until well combined.
Add the eggs, one at a time, beating well after each addition.
Add the dry ingredients to the wet ingredients and mix until just combined.
Fold in the grated carrots, chopped walnuts, raisins, and vanilla extract.
Divide the batter evenly among the prepared pans.
Bake for 25-30 minutes or until a toothpick inserted in the center comes out clean.
Let the cakes cool in the pans for 10 minutes before transferring them to wire racks to cool completely.