Skip to content

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