add column with default laravel migration code example
Example: laravel migration change column default
Schema::table('users', function ($table) {
$table->integer('active')->default(0)->change();
});
Schema::table('users', function ($table) {
$table->integer('active')->default(0)->change();
});