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

[5.4] Add whereNotIn() to Collection #18140

Closed
wants to merge 1 commit into from
Closed

[5.4] Add whereNotIn() to Collection #18140

wants to merge 1 commit into from

Conversation

guidocella
Copy link
Contributor

This PR adds the whereNotIn and whereNotInStrict methods to the Collection class.

Turns

$collection->reject(function ($item) {
    return in_array($item->key, ['foo', 'bar']);
});

into

$collection->whereNotIn('key', ['foo', 'bar']);

@taylorotwell
Copy link
Member

This changes the method signature of whereIn so it is a breaking change.

@guidocella guidocella deleted the collection-wherenotin branch February 28, 2017 07:51
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.

2 participants