Tucker-Eric / EloquentFilter

An Eloquent Way To Filter Laravel Models And Their Relationships
http://tucker-eric.github.io/EloquentFilter
MIT License
1.72k stars 120 forks source link

Add orWhereLike #161

Closed khobiziilyes closed 3 years ago

khobiziilyes commented 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) ->orWhereLike('brand', $term);

Thank you for the great package !

khobiziilyes commented 3 years ago

https://github.com/Tucker-Eric/EloquentFilter/issues/78 Found the solution, Hope that it would be added to the documentation. image

Tucker-Eric commented 3 years ago

Docs updated https://github.com/Tucker-Eric/EloquentFilter/blob/master/README.md#additional-filter-methods