Place the flour, sourdough starter, milk, sugar, butter, yeast (if using), and egg in the bowl of a stand mixer. Use a paddle attachment to mix the ingredients on low speed until a sticky dough forms. Sprinkle the salt in an even layer over the dough, cover, and allow the dough to rest for about 20 minutes.
3 cups (360 g) all-purpose flour, 1 cup (227 g) sourdough starter, ¾ cup (170 ml) whole milk, 3 tablespoons (37 g) granulated sugar, 3 tablespoons (42 g) unsalted butter, 1 (50 g) large egg, 1 teaspoon instant yeast