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

Improve banned() scope to be used for both banned and unbanned queries #16

Merged
merged 2 commits into from
Sep 20, 2024

Conversation

onlime
Copy link
Contributor

@onlime onlime commented Aug 30, 2024

Allow banned() scope to be used for both banned and unbanned queries, so it can be used for scope filters.

Like this, we could simply use the banned scope for spatie/laravel-query-builder Scope Filters, instead of using more complex ways to apply either banned or notBanned scopes.

… so it can be used for scope filters (e.g. spatie/laravel-query-builder)
@mchev mchev added the needs documentation Improvements or additions to documentation label Sep 20, 2024
@mchev
Copy link
Owner

mchev commented Sep 20, 2024

Thanks @onlime

@mchev mchev merged commit 5a792d0 into mchev:2.x Sep 20, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants