Right click on text layer > Blending options > Gradient Overlay
Literally that is all there is to it. Reason I am writing this article is I searched for this and saw way too many complicated ways and tutorials.
Right click on text layer > Blending options > Gradient Overlay.