Also: I'd not recommend hub motors with cargo bikes. There is a reason all cargo bike makers switched away from hub motors. They're low-power and often not strong enough mechanically.
And not all hub motors are low-power. You can get Chinese ones with insane power output. (5000W! … just remember that Europe has strict power restrictions on e-bike motors.)