$table->string('name')->default('Hello World!');
Schema::table('users', function ($table) {
$table->integer('active')->default(0)->change();
});
protected $attributes = [
'your_field_name' => 'default value'
];
Schema::table('users', function ($table) {
$table->integer('active')->default(0)->change();
});
You can use change() method:
Schema::table('users', function ($table) {
$table->integer('active')->default(0)->change();
});