With the Paint Bucket Tool I can fill an area with a solid color. How can I fill an area with a gradient? When I try to use the Gradient Tool, it fills the entire layer with a gradient. I know I can fill vector shapes with gradients but the area I'm trying to fill is not a vector shape; it's an area created by brush strokes. I'm using Photoshop CC.
EDIT: What I meant is an area surrounded or made by multiple brush strokes. After reading Vicki's answer I realized I need to select the area first. I was able to do what I wanted by first using the Magic Want Tool to select the area and then using the Gradient Tool to apply the gradient.