laravel migration change column default code example
Example 1: laravel migration set default value
$table->string('name')->default('Hello World!');
Example 2: laravel migration change default value
Schema::table('users', function ($table) {
$table->integer('active')->default(0)->change();
});
Example 3: laravel migration change column default
Schema::table('users', function ($table) {
$table->integer('active')->default(0)->change();
});