nicolaslopezj / searchable

A php trait to search laravel models
MIT License
2.01k stars 291 forks source link

Return entire string #183

Open jhoanborges opened 5 years ago

jhoanborges commented 5 years ago

I've been using this package and it's truly amazing, but i'm facing a problem right now. If i try to srach a word for example LG, the return will be a full search because i'm searching in

 'product.name' => 10,
  'product.description' => 10,

The problem is that there's another products with the word lg but not as an entire string, it will returns "PULGADAS" where lg is contained in the string. What can i do to search for entire strings?