Answers for "add new column after in with default laravel migration"

PHP
3

laravel migration add column after

Schema::table('users', function ($table) {
    $table->string('email')->after('id')->nullable();
});
Posted by: Guest on December-11-2020
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 "add new column after in with default laravel migration"

Browse Popular Code Answers by Language