How to fix my iPhone 6 charger?

The metal piece on my lighting cable that plugs into my phone snapped off while I was sleeping. I wanted to know if this is fixable or do I just have to get a whole new cable entirely.

They are cheap so buy a new one.