Skip to content

Migration generator bug for decorators #3

@brianwebb01

Description

@brianwebb01

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);

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions