Of course it needs laws to curtail the worst of the impacts capitalism has. Capitalism is a system that distributes a finite amount of resources between demand that outstrips supply. It doesn’t concern itself dishonest actors, that is what the judicial system is for. McDonalds was such a dishonest actor and that they got away with it is a failure of the judicial system.