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