Eight farmers markets were going to close down due to funding issues until the salad restaurant chain stepped in.