Laravel-4-Generators icon indicating copy to clipboard operation
Laravel-4-Generators copied to clipboard

Generating model with fields failed

Open RSully opened this issue 11 years ago • 2 comments
trafficstars

php artisan generate:scaffold --fields="customer_id:int,title:string" form

results in the following bad code:

$table->int,title('customer_id')->string();

RSully avatar Aug 13 '14 20:08 RSully

Try with a space between fields, like this:

php artisan generate:scaffold --fields="customer_id:int, title:string" form

foxted avatar Aug 13 '14 21:08 foxted

I'm sure that'll work, just wanted to see if we could fix the matching to be a little smarter.

RSully avatar Aug 14 '14 11:08 RSully