set default value for column in laravel model

63

You can use change() method:

Schema::table('users', function ($table) {
    $table->integer('active')->default(0)->change();
});

Comments

Submit
0 Comments