01 - Preheat oven to 350°F. Line a 12-cup muffin tin with paper liners.
02 - In a medium bowl, whisk together flour, baking powder, baking soda, salt, cinnamon, nutmeg, and ginger until evenly blended.
03 - In a large bowl, beat eggs, granulated sugar, and brown sugar until thoroughly combined. Add vegetable oil, applesauce, and vanilla extract; whisk until mixture is smooth.
04 - Gradually fold the dry ingredients into the wet mixture until just incorporated. Avoid overmixing to prevent dense cupcakes.
05 - Fold in the grated carrots, and if desired, incorporate walnuts, pecans, and raisins.
06 - Divide the batter evenly into the prepared cupcake liners, filling each liner approximately two-thirds full.
07 - Transfer the muffin tin to the oven and bake for 22 to 25 minutes, until a toothpick inserted into the center of a cupcake comes out clean.
08 - Allow cupcakes to cool in the pan for 5 minutes, then gently move them to a wire rack and let them cool completely.
09 - Beat softened cream cheese and butter together until smooth and creamy. Add powdered sugar, vanilla extract, and a pinch of salt; beat until light and airy.
10 - Once cupcakes are fully cooled, frost generously with cream cheese frosting. Garnish with additional nuts or grated carrot if desired.