Skip to content

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.

3 participants