Preheat oven to 350 F. Line 2 8-inch cake pans with parchment paper, spray and grease well. Set aside.
In an electric stand mixer mix together flour, sugar, brown sugar, cinnamon baking soda, baking powder, salt, cinnamon, nutmeg, and ginger until well combined.
2 ¼ cups all-purpose flour, 1 cup granulated sugar, 1 cup light brown sugar, 2 teaspoons ground cinnamon, 1 ½ teaspoon baking soda, 1 teaspoon baking powder, 1 teaspoon salt, ¼ teaspoon ground nutmeg, ¼ teaspoon ground ginger
Add the oil and butter and mix until combined, it will form a stiff, almost cookie-dough-like batter.
1 cup vegetable oil, ¼ cup melted butter
Beat in the eggs, 1 at a time, fully incorporating before adding the next. Add in the vanilla until incorporated.
4 whole large eggs, 2 teaspoons vanilla extract
Using a spatula fold in the carrots, pecans and raisins if using, until evenly combined.
3 cups shredded carrots, 1 cup chopped pecans, ½ cup raisins
Divide equally into the prepared pans, and bake for 35-40 minutes, until a tester comes out clean.
Remove from the oven and let cool in the pan for 10 minutes before removing to a wire rack to cool completely.
Meanwhile, prepare the frosting by beating cream cheese and butter until smooth and fluffy. Add in vanilla, powdered sugar, and milk and beat until combined and a spreadable consistency. Adjust the milk and powdered sugar if necessary to get the right consistency.
½ cup butter, 8 oz cream cheese, 1 teaspoon vanilla extract, 4-5 cups powdered sugar, 1-2 Tablespoons milk
To assemble, place one layer of the cake onto a plate, top spread a thin layer of frosting evenly over the top. Place the next layer of cake over, and spread the remaining frosting over the top and sides. Use the pecans to decorate as desired.