InfyOmLabs / generator-builder

InfyOm Laravel Generator GUI Builder
http://labs.infyom.com/laravelgenerator/
MIT License
133 stars 71 forks source link

issue with migration and underscore #17

Closed kirchaj closed 8 years ago

kirchaj commented 8 years ago

I have created a scaffold with the model Order_Status. There are two issues that seem to be generated.

First, the migration is created with class CreateOrder_StatusesTable extends Migration but when I try to migrate I get the error [Symfony\Component\Debug\Exception\FatalThrowableError] Class 'CreateOrderStatusesTable' not found

If I change the line to class CreateOrderStatusesTable extends Migration the migration runs.

In the migration file, the generator is also putting double underscores in the create and drop table name Schema::drop('order__statuses');

kirchaj commented 8 years ago

sorry. This really should have gone under the laravel-generator.

mitulgolakiya commented 8 years ago

@kirchaj try to use OrderStatus as model name.