Preheat oven to 350° F and line muffin pans with 24 paper liners.
Using an electric mixer, cream the butter and sugar. Add the vanilla, then mix in the eggs, one at a time.
In a separate bowl, sift together the flour, baking soda, cinnamon, and salt. Add half of this flour mixture to the mixing bowl, reserving half, and mix completely.
Add the grated carrots and raisins to the remaining flour and mix well, then add to your batter in the mixture. Mix until just combined, do not over mix.
Fill cups with batter about 3/4 full. Bake at 400° F for 10 minutes, then reduce temperature to 350° F and cook for about 20 minutes more. Cooking time varies, so start checking after 10-15 minutes. The cupcakes are ready when a toothpick comes out clean. Remove from the oven, let cool 5 minutes in pans, then remove and cool completely on racks.
Variations: I've made these replacing the raisins with crystallized ginger or even chocolate chips. I've also used other fruits and vegetables such as zucchini or apple, reducing the amount of carrot. Lots of possibilities!