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

[11.x] doesntContain on eloquent collection #54567

Merged

Conversation

gdebrauwer
Copy link
Contributor

I was surprised that the eloquent collection has a contains method but not a doesntContain method, so this PR adds that method 😄

$users->doesntContain($someUser);

@taylorotwell taylorotwell merged commit 8e9d24e into laravel:11.x Feb 12, 2025
46 checks passed
@mnaderian
Copy link

God I needed that. Thank you @gdebrauwer.

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

3 participants