Is it legal for a tow truck driver to tow your car while you're still in the vehicle?

It is illegal for a tow truck to tow your car while someone still present in the vehicle.