Use digital potentiometer and transistor to drive pigtailed laser diode

The base current controls the collector current. Use a lower value base resistor to increase both.

That is not a good design, because the collector/laser diode current will be strongly temperature dependent. Laser diodes generally require a constant current driver.