You are right about the laws influencing child labor, however they are not a sufficient condition. There also needs to be a corresponding increase in returns to child education over and above returns from labor in order for child labor to vanish. For example: India has very strong laws, however child labor still exists.