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

Enable reading of filter configuration publicly #18

Merged

Conversation

bbrala
Copy link
Contributor

@bbrala bbrala commented Jul 28, 2021

Refactor filters to some traits enable checking for implemented trait and asking column and operator configuration.

Reason i used traits is so we can check if a trait is implemented with Laravel method class_uses_recursive.

Fixes #17

Copy link
Contributor

@lindyhopchris lindyhopchris left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks so much for submitting this. There's one comment to address.

I'm really happy with the traits - the added advantage is people can then use them in their own filter classes if needed.

src/Filters/WhereIdIn.php Outdated Show resolved Hide resolved
… and asking column and operator configuration.
@bbrala bbrala force-pushed the feature/public-filter-methods branch from 741ef1e to 8d34036 Compare July 30, 2021 08:15
@bbrala
Copy link
Contributor Author

bbrala commented Jul 30, 2021

I've pushed a commit excluding the changed to WhereIdIn.

@lindyhopchris
Copy link
Contributor

Thanks! I'm going to be working on this package this weekend, so will merge then.

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.

Access column from filters
2 participants