Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[9.x] Improves auto-completion on Model::factory() #39171

Merged
merged 1 commit into from
Oct 13, 2021

Conversation

nunomaduro
Copy link
Member

This pull request makes the HasFactories leverage the work on #39169.

Because PHPStorm does not support generic traits, Team::factory() returns an instance of Factory<Team> but not TeamFactory, allowing to get some level of native auto-completion like this:
Screenshot 2021-10-12 at 14 39 22

@taylorotwell taylorotwell merged commit 161098d into master Oct 13, 2021
@taylorotwell taylorotwell deleted the feat/generic-has-factories branch October 13, 2021 13:36
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants