laravel migration set default value
$table->string('name')->default('Hello World!');
laravel migration set default value
$table->string('name')->default('Hello World!');
laravel migration default value
$table->increments('id');
$table->string('name');
$table->string('url');
$table->string('country');
$table->tinyInteger('status')->default('1');
$table->timestamps();
laravel migration change column default
Schema::table('users', function ($table) {
$table->integer('active')->default(0)->change();
});
laravel migration change default value
Schema::table('users', function ($table) {
$table->integer('active')->default(0)->change();
});
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us