Preheat your oven to 350°F (175°C). Grease and flour two 9-inch round cake pans or line them with parchment paper.
In a large bowl, whisk together the flour, baking powder, baking soda, cinnamon, ginger, nutmeg, and salt. Set aside.
In another bowl, beat together the sugar, oil, eggs, and vanilla extract until well combined and slightly thickened.
Gradually add the dry ingredients to the wet ingredients, mixing until just combined. Do not overmix.
Fold in the carrots, pineapple, walnuts, and raisins until evenly distributed throughout the batter.
Divide the batter evenly between the prepared pans. Bake for 35-40 minutes, or until a toothpick inserted into the center comes out clean.
Allow the cakes to cool in the pans for 10 minutes, then transfer to a wire rack to cool completely.