Closed nullcall closed 8 years ago
you can use the --table-name=[...] option
The naming convention for the table is the same as Eloquent uses, plural for tables, singular for models. As @pfalsoncup says, you can specify a custom name for the table with --table-name=[...] option.
There is one more thing, I haven't tested it using schemas... so I'm not sure if will work even with custom table name. You can try, and I can spend some time making this work probably, but it would take me a week or so...
I hope it helps!.
Tx buddy. On Jun 18, 2016 02:23, "Peter Falson" notifications@github.com wrote:
you can use the --table-name=[...] option
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kEpEx/laravel-crud-generator/issues/5#issuecomment-226844556, or mute the thread https://github.com/notifications/unsubscribe/AGrC4VnRQOhgR2YOZsVNLeDVkxnqAWVaks5qMuY4gaJpZM4IgIju .
D:\master>php artisan make:crud _productserice
Creating catalog for table: _productserices Model Name: Product_serice
[Illuminate\Database\QueryException] SQLSTATE[42S02]: Base table or view not found: 1146 Table 'sscdev.product serices' doesn't exist (SQL: show columns from Product_serices)
[PDOException] SQLSTATE[42S02]: Base table or view not found: 1146 Table 'sscdev.product serices' doesn't exist
==== It's add extra 's' at the end of table name, due to this table not found in DB
=== MORE CLEAR ============ D:\master>php artisan make:crud product_series2
Creating catalogue for table: _productseries2s Model Name: Product_series2
[Illuminate\Database\QueryException] SQLSTATE[42S02]: Base table or view not found: 1146 Table 'sscdev.product series2s' doesn't exist (SQL: show columns from Product_series2s)
[PDOException] SQLSTATE[42S02]: Base table or view not found: 1146 Table 'sscdev.product
series2s' doesn't exist
php artisan make:crud all (is working fine)
i have php 7, mysql, apache 2.4 windows 7 64-bit. Kindly help me in this. or tell me how can i skill existing CRUD controller instance -fore overwrite.