I need the reverse of a LIKE comparison. For example, if my database contains a person with firstName "Daniel" and I search for first name "dan" then I want to get a hit. The query works when I use
->where('firstName', 'like', '%'.$searchTerm.'%')
What would I use if my database contains "Dan" and I want to get a hit when I search for "Daniel"?
I am using the query builder in Laravel 5.6
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire