lumen-generators
lumen-generators copied to clipboard
artisan wn:controller issue when underscore in the name of table
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!