Change Pluralisation rules #479
I also have problem with pluralization, I decided to change the file
Sorry, my English came from Google Translate.
Hi! I have the same problem with pluralization. I resolved it on this way:
In infyomlabs/laravel-generator/src/Common/GeneratorConfig.php, edit the array $availableOptions, adding 'plural' at the end.
next, edit the first line of the function prepareModelNames
In infyomlabs/laravel-generator/src/Commands/BaseCommand.php -> getOptions add 'plural' to the array, on this way:
That's all! Now, if you want to use a custom plural for a model, you can use --plural=pluralmodelname