Preheat oven to 350°F (175°C). Grease and line two 9-inch cake pans with parchment paper.
In a bowl, whisk together flour, baking powder, baking soda, cinnamon, nutmeg, and salt.
In a large bowl, beat eggs and sugar until light and slightly thickened.
Slowly add in oil while mixing. Stir in vanilla.
Combine wet and dry ingredients. Stir until just mixed—don’t overmix.
Fold in carrots, pineapple, walnuts, and coconut.
Divide batter between pans. Bake 25–30 mins or until a toothpick comes out with crumbs.
Cool in pans 10 mins, then transfer to wire racks to cool completely.
Beat cream cheese and butter until fluffy. Add sugar gradually, then vanilla and salt.
Frost cooled cake layers and decorate as desired.