Relative Content

Tag Archive for laraveleloquent

How to query a field that is in a different format?

In Laravel, if I have a phone number in the format of 1234567890 and I have a Customers table/model with a phone column that has the phone in the format of (123) 456-7890, what’s the best way to query the Customers table?