Preheat your oven to 350°F (180°C). Grease a 9×13 inch baking pan and put aside.
In a medium bowl, whisk collectively the flour, baking powder, baking soda, cinnamon, and salt.
In a big bowl, beat collectively the sugar, eggs, and oil till effectively mixed. Add the dry components to the moist components and stir till simply mixed. Stir within the grated carrots and nuts, if utilizing.
Pour the batter into the ready pan and easy the highest with a spatula. Bake for 30-35 minutes, or till a toothpick inserted into the middle comes out clear. Enable the cake to chill utterly.
To make the frosting, beat collectively the cream cheese and butter till easy. Add the confectioners’ sugar and vanilla and beat till effectively mixed and easy. Unfold the frosting over the cooled cake and serve.