Add ability to specify another model name #299
Hirishiolo
started this conversation in
Ideas
Replies: 2 comments 2 replies
-
@Hirishiolo This feature supported by config: /*
|--------------------------------------------------------------------------
| Model Names
|--------------------------------------------------------------------------
|
| By default the generator will create models with names that match your tables.
| However, if you wish to manually override the naming, you can specify a mapping
| here between table and model names.
|
| Example:
| A table called 'billing_invoices' will generate a model called `BillingInvoice`,
| but you'd prefer it to generate a model called 'Invoice'. Therefore, you'd add
| the following array key and value:
| 'billing_invoices' => 'Invoice',
*/
'model_names' => [
], |
Beta Was this translation helpful? Give feedback.
0 replies
-
yes, thank you very much. It would be fantastic if that can be used inline as I suggested! |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Example:
php artisan code:models --table=users --model-name=Utente
It will create model "Utente"
thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions