Is there any option to force the gradient/fill in the stroke along the path? Or you have to use some other option to achieve same effect?
You can stoke the path twice. Doing it to different layers allows blending ajustment. The top layer version must be stroked with smaller brush. It can have fuzzy edges or that layer can be blurred.
Here's an example after the first stroke with brush:
This is after second stroke, the opacity is reduced for more subtle effect and the brush has Hardness=0.
A bright highlight is added with a narrower third stroke:
Now the first stroke seems to be a little too wide. But no problem, it can be deleted and a new can be inserted with a little smaller brush to the same layer:
If its width is right, then one can let it be and adjust the opacities of the whites, the upper white is blurred:
To do this in Photoshop you'll want to use the Mixer Brush tool. I previously made a tutorial on this you can find here: https://www.youtube.com/watch?v=4AELf9E-OdY
Essentially for the gradient you want you'll make a "palette" being a small circle of the gradient using "Reflected" style on the gradient.
Then sample that with the color mixer brush as close to center as possible.
Then when you go to stroke your path change from Brush to Mixer Brush
Just because of seeing the other answers, the reason I'm recommending this method is because it works with actual gradients where the others are using outside shadows/glows. For a simple gradient that may be sufficient but when the question is how to do a gradient along a path you may one day need a more complex gradient which this allows for: