Closed khobiziilyes closed 3 years ago
Hey, Simply i had to write: return $this ->whereLike('name', $term) ->orWhereRaw('LOWER(brand) LIKE ?', ['%' . $term . '%']); So it would be helpful to :
return $this ->whereLike('name', $term) ->orWhereRaw('LOWER(brand) LIKE ?', ['%' . $term . '%']);
return $this ->whereLike('name', $term) ->orWhereLike('brand', $term);
Thank you for the great package !
https://github.com/Tucker-Eric/EloquentFilter/issues/78 Found the solution, Hope that it would be added to the documentation.
Docs updated https://github.com/Tucker-Eric/EloquentFilter/blob/master/README.md#additional-filter-methods
Hey, Simply i had to write:
return $this ->whereLike('name', $term) ->orWhereRaw('LOWER(brand) LIKE ?', ['%' . $term . '%']);
So it would be helpful to :return $this ->whereLike('name', $term) ->orWhereLike('brand', $term);
Thank you for the great package !