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 countable interface to eloquent factory sequence #39907

Merged
merged 2 commits into from Dec 6, 2021

Conversation

acurrieclark
Copy link
Contributor

I recently submitted a discussion regarding this, but following Dries Vints' request on twitter today, I thought I would just go ahead and submit a PR.

Essentially, I tried to call count($sequence) on an instance of Illuminate\Database\Eloquent\Factories\Sequence and was surprised to find that it wasn't, well, \Countable.

Given the existence of the $count class variable, I thought it might be a sensible addition.

@taylorotwell taylorotwell merged commit 7105924 into laravel:8.x Dec 6, 2021
@taylorotwell
Copy link
Member

Thanks for contributing to Laravel! ❤️

@acurrieclark
Copy link
Contributor Author

Most welcome. And an enormous thank you to you too.

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.

None yet

4 participants