ambengers / laravel-query-filter

Laravel query filter provides an elegant way to filter your eloquent models via the request query string.
MIT License
30 stars 5 forks source link

Can we search using specific field ? #19

Closed pentolbakso closed 2 years ago

pentolbakso commented 2 years ago

Just like sort filter

eg: search=fullname|john

Thank You

ambengers commented 2 years ago

@pentolbakso this package currently do not support that search query syntax.

At the moment you can declare the columns you want to be searchable for your model within the $searchableColumns attribute in your filter class.