Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

how assign default value to laravel migration column

You can use change() method:

Schema::table('users', function ($table) {
    $table->integer('active')->default(0)->change();
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #assign #default #laravel #migration #column
ADD COMMENT
Topic
Name
2+7 =