Preheat oven to 350℉.
Grease and line 2 9-inch square or round pans with parchment.
In the bowl of a stand mixer, beat eggs and sugar very well.
Add oil and beat just until blended.
Add sifted dry ingredients and mix until combined.
Fold in the carrots, pineapple and nuts (optional).
Divide the batter between the two pans and bake for 40 minutes.
Remove from the oven and let cool on a wire rack.
Remove from the pans and spread some frosting on one layer and sandwich together and use the rest of the icing to frost the cake.