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] Default to null if amount isn't set in factory helper #576

Merged
merged 1 commit into from
Feb 25, 2017
Merged

[5.4] Default to null if amount isn't set in factory helper #576

merged 1 commit into from
Feb 25, 2017

Conversation

salaman
Copy link
Contributor

@salaman salaman commented Feb 25, 2017

Ports the fix from laravel/framework#17614 to Lumen.

This fixes calls to the factory() helper which don't specify an amount returning a Collection of a single element (because of laravel/framework#17493), when they should be returning the model instance itself.

@taylorotwell taylorotwell merged commit 46b9743 into laravel:5.4 Feb 25, 2017
@salaman salaman deleted the factory-helper-null branch February 25, 2017 20:17
@salaman salaman restored the factory-helper-null branch February 25, 2017 20:18
@salaman salaman deleted the factory-helper-null branch February 25, 2017 20:19
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