Skip to content

Conversation

@davidjr82
Copy link

Before, the name of the model was the datatable model itself, instead the model the user was passing with the --model option. Now, if model option is passed, it takes it to generate the model name.

Before, the name of the model was the datatable model itself, instead the model the user was passing with the --model option. Now, if model option is passed, it takes it to generate the model name.
@yajra
Copy link
Owner

yajra commented Mar 6, 2019

Sorry for late response but I think not passing a --model option would break our generator. I think there is a 2nd argument that sets the default value if none was set?

$this->option('model', str_singular($name))

@yajra yajra closed this Sep 7, 2019
yajra added a commit that referenced this pull request Sep 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants