Skip to content

Conversation

@Flightfreak
Copy link

I make extensive use of the findOrNew, firstOrNew, firstOrCreate, updateOrCreate methods in the Eloquent model but am missing them in the BelongsToMany, HasOneOrMany and MorphOneOrMany relations. I've added them myself and will write the tests if there is interest in taking this on. Thank you for considering!

Addition of findOrNew, firstOrNew, firstOrCreate, updateOrCreate to
BelongsToMany, HasOneOrMany and MorphOneOrMany.
@taylorotwell
Copy link
Member

Can you send this to 5.0 branch (master) with tests?

@Flightfreak
Copy link
Author

Ok, I will try to get this done later this week.

@GrahamCampbell
Copy link
Collaborator

🍻

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.

3 participants