Preheat your oven to 350°F (175°C). Grease and flour a 9×13-inch baking dish.
2. Make the Cake Batter
In a large bowl, whisk together the flour, sugar, baking soda, and salt.
Stir in the eggs, vanilla extract, and the entire can of crushed pineapple (including the juice). Mix until everything is well combined, but don’t overmix.
3. Bake the Cake
Pour the batter into the prepared baking dish and spread it out evenly.
Bake in the preheated oven for 30-35 minutes, or until a toothpick inserted into the center of the cake comes out clean.
4. Prepare the Cream Cheese Frosting
While the cake is baking, beat the cream cheese and butter together in a large bowl until smooth and creamy.
Gradually add the powdered sugar and vanilla extract, mixing until smooth.
5. Cool and Frost
Once the cake is done, remove it from the oven and allow it to cool completely in the pan.
Once cooled, spread the cream cheese frosting evenly over the top of the cake.
6. Garnish and Serve
Optionally, sprinkle shredded coconut and chopped nuts over the top of the frosted cake for added texture and flavor.