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

[9.x] Make:model --morph flag to generate MorphPivot model #41011

Merged
merged 4 commits into from
Feb 14, 2022
Merged

[9.x] Make:model --morph flag to generate MorphPivot model #41011

merged 4 commits into from
Feb 14, 2022

Conversation

michael-rubel
Copy link
Contributor

  • This PR adds the possibility to generate MorphPivot model using make:model command in Laravel 9.

Why?

Had to create a lot of models for polymorphic tables, and I always miss the option to include the MorphPivot instead of the basic one on make:model immediately, so I think it will be helpful for those who work with polymorphic tables on a daily basis.

@taylorotwell
Copy link
Member

Rename option to morph-pivot.

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

2 participants