Add orWhereLike
khobiziilyes opened this issue · 2 comments
khobiziilyes commented
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 !
khobiziilyes commented
https://github.com/Tucker-Eric/EloquentFilter/issues/78
Found the solution, Hope that it would be added to the documentation.