Indatus / blacksmith

Blacksmith is a code generation tool which automates the creation of common files that you'd typically create for each entity in your application.
MIT License
193 stars 13 forks source link

Migration generator bug for decorators #3

Open brianwebb01 opened 10 years ago

brianwebb01 commented 10 years ago

this code blacksmith generate author scaffold ~/Desktop/blksm_cust_tpl/config.json --fields="name:string[50]"

Generates this:

public function up()
    {
        Schema::create('authors', function(Blueprint $table) {
            $table->increments('id');
            $table->string[50]('name');
            $table->timestamps();
        });
    }

Should be:

$table->string('name', 50);