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

Add return type extension for find* methods on builder #503

Merged
merged 1 commit into from
Mar 22, 2020
Merged

Add return type extension for find* methods on builder #503

merged 1 commit into from
Mar 22, 2020

Conversation

canvural
Copy link
Collaborator

This is a similar extension to ModelFindExtension but works on Eloquent Builder.

User::with('foo')->find([1, 2, 3]) will return array of users or null. Whereas User::with('foo')->find(1) will return a single user or null.

@canvural canvural merged commit d5ef881 into larastan:master Mar 22, 2020
@canvural canvural deleted the patch-1 branch March 22, 2020 21:22
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