I would advice to use some kind of JavaScript library for that, like: http://digitalbush.com/projects/masked-input-plugin/#demo
And from back-end Laravel point of view, there are several ways to handle it:
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community