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

artisan wn:controller issue when underscore in the name of table #64

Open
rg-viza opened this issue Sep 13, 2018 · 1 comment
Open

artisan wn:controller issue when underscore in the name of table #64

rg-viza opened this issue Sep 13, 2018 · 1 comment

Comments

@rg-viza
Copy link

rg-viza commented Sep 13, 2018

No description provided.

@rg-viza
Copy link
Author

rg-viza commented Sep 13, 2018

Not a huge issue, but I had an underscore in the name of a table with an existing database. Ordinarily I don't use underscores in a table name but the existing table did in this case. This sums it up:
[[name]@[host] www.hostname.org]$ php artisan wn:controller ITEM_MAINT
ITEM_MAINTSController generated !
i-t-e-m_-m-a-i-n-t routes generated !

When there's an underscore in the name, it adds a hyphen between every character in the resulting routes...

Thought I'd let you know :-)

Great generator by the way! I'll be using it a lot because I'm building a bunch of RESTful interfaces for legacy systems. Saves a ton of work!

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

No branches or pull requests

1 participant