INGREDIENTS
•
1 tablespoon unsalted butter, for greasing the pans
•
2 cups unbleached all-purpose flour
•
1 teaspoon baking powder
•
3/4 teaspoon baking soda
•
3/4 teaspoon fine sea salt or table salt
•
2 teaspoons ground cinnamon
•
1/2 teaspoon freshly grated nutmeg
•
1/4 teaspoon ground allspice
•
2 cups packed light brown sugar
•
4 large eggs, at room temperature
•
1 cup safflower or canola oil
•
1 pound carrots, trimmed, peeled, and coarsely grated on the largest holes of a box grater or the fine grating blade of food processor (about 3 lightly packed cups total)
•
2/3 cup walnuts or pecans, coarsely chopped, plus more lightly toasted nuts for garnish
•
2/3 cup dark or golden raisins
•
2 (8-ounce) packages cream cheese, chilled
•
11 tablespoons unsalted butter, softened at room temperature
•
1 1/3 cup confectioners' sugar, sifted after measuring
•
1 tablespoon pure vanilla extract
•
Equipment: 2 (9-inch-round, 2-inch-deep) cake pans or 1 (9- by 13-inch) baking pan; parchment paper; stand mixer fitted with the paddle attachment; 1 to 2 wire cooling racks