Photocurrent as a multiphysics diagnostic of quantum materials