We experimentally investigate the thermocapillary migration induced by local laser heating of the advancing front of a growing droplet confined in a microfluidic channel. When heating implies an effective increase in interfacial tension, the laser behaves as a "soft door" whose stiffness can be tuned via the optical parameters (beam power and waist). The light-driven thermocapillary velocity of a growing droplet, which opposes the basic flow, is characterized for different types of fluid injection, either pressure or flow rate driven, and various channel aspect ratios. Measurements are interpreted using a simplified model for the temperature gradient at the interface, based on a purely diffusive, three-layer system. Considering the mean tem...