In baked goods like cakes and cupcakes, I will often substitute eggs with applesauce. Alternatively you can use flaxseed, tofu, or banana, depending on the recipe.