how we generate a single column migration in laravel

107

Schema::connection('foo')->create('users', function (Blueprint $table) {
    $table->id();
});
if (Schema::hasTable('users')) {
    //
}
 
if (Schema::hasColumn('users', 'email')) {
    //
}

Comments

Submit
0 Comments