Preheat oven to 350°F. Grease cake pans thoroughly.
Mix flour, baking powder, and salt together.
Cream butter and sugar until light and fluffy.
Add eggs one at a time, beating well.
Mix in vanilla extract until completely combined.
Alternate adding flour mixture and milk gradually.
Fold in coconut flakes with gentle motions.
Divide batter evenly between prepared pans.
Bake for 25-30 minutes until golden brown.
Cool completely before removing from pans.
Beat butter for frosting until light and creamy.
Gradually add powdered sugar, cream, and vanilla.
Frost cooled cake layers with coconut frosting.
Press coconut flakes onto sides and top.