As for the claim that the new laws allow anybody to approach a farmer with a better deal; sure that works in theory -- but notice that 1) that only works if there isn't a monopoly that drives prices (consider Jio that successfully monopolized telecom in India and now effectively sets prices throughout the industry) 2) farmers would be contractually obligated to sell produce (which would be a long-term deal).
The issue might be alleviated if the government promises to enforce a minimum price on all contracts made, but it will do nothing of that sort.
As for selling directly to end customers, in my limited knowledge, that is not a thing in India.