Don’t buy really cheap cables, the Lightning connector has a chip in it, so while a cheap one might charge, it’ll probably not carry data. I’ve got a bunch of 30-pin ones, going back five or more years, most of them, and only one has the white outer split at the dock end. Been like it for several years, still in regular use. I keep meaning to put some fast-set epoxy or hot glue on it to secure it.
If you want something a bit more substantial, then get one of these: http://www.easterncollective.com/product/lighting-zombie-collective-cable/
They do a whole range, up to 6′ long, and different connectors, and they’re beautifully made, like proper old-skool radio leads.
Not cheap, but let’s face it, you’re going to want it to keep working for years, not weeks.
Thinking about it, I’ll bet part of the problem is that people just grab the wire and pull, rather than hold the actual plug and pull that, thus causing the wire inside to fracture, and the cable break away from the connector. Handled properly, they’ll last donks.