Preheat the oven to 350 degrees and line two cupcake pans (or muffin tin) with 24 cupcake liners. Then set aside.
In a medium bowl, whisk together the all purpose flour, cinnamon, nutmeg, ginger, allspice, baking powder, baking soda and salt. Then set aside the dry ingredients.
2 ½ cups (313 g) all-purpose flour, spooned and leveled, 1 tablespoon ground cinnamon, ½ teaspoon ground nutmeg, ½ teaspoon ground ginger, ½ teaspoon ground allspice, 1 ½ teaspoon baking powder, ¼ teaspoon baking soda, ½ teaspoon sea salt
In a large mixing bowl, cream together the butter, granulated sugar and light brown sugar with an electric hand mixer on high speed until fluffy, about 3-4 minutes. (If using a stand mixer, use the paddle attachment.)
10 tablespoon (140 g) unsalted butter, softened, 1 cup (200 g) granulated white sugar, ½ cup (110 g) light brown sugar, packed
Then add in the eggs and vanilla and mix on medium then medium-high speed until smooth, pale in color and slightly fluffy, about 2-3 minutes. Scrape the sides of the bowl with a rubber spatula as needed.
3 eggs, at room temperature, 1 teaspoon vanilla bean paste or extract
Alternate adding the flour mixture and the buttermilk to the butter mixture a little at a time, until each has been added completely. Mix on low then medium speed just until the batter is combined and smooth, scraping the sides of the bowl as necessary.
¾ cup (178 ml) buttermilk, at room temperature
Add in the grated carrots and mix on low speed just until dispersed through the batter.
2 cups (220 g) finely shredded carrots, at room temperature
Evenly distribute the cupcake batter between the cupcake liners. Each liner will be about three-quarters full.
Bake the cupcakes for 19-22 minutes, or until a toothpick comes out clean from the centers. Let the cupcakes cool in the pans for 10 minutes, then transfer them to a wire rack to completely cool.