Answers for "laravel add migration add column to existing table with default value"

PHP
0

laravel migration change column default

Schema::table('users', function ($table) {
    $table->integer('active')->default(0)->change();
});
Posted by: Guest on June-03-2021

Code answers related to "laravel add migration add column to existing table with default value"

Browse Popular Code Answers by Language