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