Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow for instantiated custom filters #76

Merged
merged 4 commits into from
Jun 12, 2018
Merged

Conversation

brendt
Copy link
Contributor

@brendt brendt commented Jun 12, 2018

By allowing instantiated filter classes for custom filters, there's some nice features possible. For example a re-usable filter which searches several fields:

->allowedFilters(Filter::custom(
    'search',
    new FuzzyFilter('first_name', 'last_name', 'email')
))

@brendt brendt merged commit b1333e2 into master Jun 12, 2018
@brendt brendt deleted the allow-instantiated-filters branch June 12, 2018 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant