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
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2y2FPIV
via IFTTT
Aucun commentaire:
Enregistrer un commentaire