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] Allow passing an array to find on the Eloquent Collection #16849

Merged
merged 1 commit into from
Dec 18, 2016

Conversation

JosephSilber
Copy link
Member

User::find([1, 2]) currently returns a collection of matching items.


With this change, you can now call find with an array on an existing collection of users too:

$users->find([1, 2]);

@JosephSilber JosephSilber force-pushed the collection-find-many branch 3 times, most recently from 38bbe13 to 126c1db Compare December 18, 2016 02:15
@taylorotwell taylorotwell merged commit 1cf3b94 into laravel:master Dec 18, 2016
@JosephSilber JosephSilber deleted the collection-find-many branch December 18, 2016 15:59
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