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

Display all if no filter set in url #95

Closed theprobugmaker closed 5 years ago

theprobugmaker commented 5 years ago

I have the search page where will have a bunch of filters, the thing is that the user might enter the search page and as it doesn't have the filter set in the url such as ?name=John Doe it will return empty. Is there a way to display all the users if no filter is set? Just so the user can see something instead of a nothing found as he hasn't even searched yet? Thank you


I just noticed it's the default behavior