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

[5.5] Added option to make new model a pivot model #21549

Merged
merged 2 commits into from
Oct 6, 2017
Merged

[5.5] Added option to make new model a pivot model #21549

merged 2 commits into from
Oct 6, 2017

Conversation

telkins
Copy link
Contributor

@telkins telkins commented Oct 5, 2017

Added an option to make a new model a pivot (custom intermediate table) model via artisan make:model.

To do so, one can simply add the -p|--pivot flag/option: artisan make:model -p MyModel

@telkins
Copy link
Contributor Author

telkins commented Oct 5, 2017

FYI...I looked for tests that I could duplicate and didn't find any. I'd be happy to add some, but would prefer to mimic any existing tests. So...if someone could point me in the right direction, I'd appreciate it. :-)

@telkins telkins changed the title Added option to make new model a pivot model [5.5] Added option to make new model a pivot model Oct 5, 2017
@taylorotwell taylorotwell merged commit 2d48bca into laravel:5.5 Oct 6, 2017
@rawzone
Copy link

rawzone commented Nov 28, 2017

Would love to see this descripted in the docs.

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