JeffreyWay/Laravel-4-Generators — pull request #113 by MunGell (2013-06-09 20:23:01+00:00)
Title: Table/Controller complex names fix.

Hi Jeffrey,

So, I faced a problem when tried to use generators for complex table/controller names. Here is an example:

`./artisan generate:scaffold contact_nicknames --fields="contact_id:integer, contact_nickname:string"`

This command will generate the following files:

* app/models/Contact_nickname.php
* app/controllers/Contact_nicknamesController.php
* app/views/contact_nicknames/index.blade.php
* (...) views
* app/database/seeds/Contact_nicknamesTableSeeder.php
* app/tests/controllers/ContactNicknamesTest.php

Also, it will generate classes like these:

* class Contact_nicknamesController extends BaseController
* class Contact_nicknamesTableSeeder extends Seeder
* class Contact_nickname extends Eloquent

In addition, in migration it uses only last part of the table name.

Thus, I've done this fix for complex naming lovers like me.

Also fixed: stdout names for generated migrations: dates added, when generating Scaffold.
Variables naming fix in controller tests generator to match ControllerGenerator code style.

Hope code meets the standards, but if you will find anything weird, please let me know.