Skip to content

Conversation

btaskew
Copy link
Contributor

@btaskew btaskew commented Sep 23, 2020

PR is for issue #34490

Benefit is that models that have to define a factory via the newFactory method can utilise the magic factory methods for has and for.

@taylorotwell
Copy link
Member

taylorotwell commented Sep 23, 2020

What if the class isn't using that trait? Should you check if the method exists first?

@taylorotwell taylorotwell merged commit 70a73ab into laravel:8.x Sep 24, 2020
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