If we defineAn equation for momentum, $$p = \gamma mv, \tag{1}$$ then for photon we get some indeterminate momentum which is 0/0.
But the formula $E=(m^2c^4+p^2c^2)^{1/2}$ gives for photon $$p=E/c .\tag{2}$$ And from equation $E=hc/\lambda$, we get an energy which is finite and then using (2) we get the momentum.
If equation (1) gives photon's momentum in an indeterminate form which is not true, then why should be momentum defined that way?
Or is it for photon (1) doesn't workbe termed valid for all particles?