1if (Schema::hasColumn('users', 'phone')) {
2 Schema::table('users', function (Blueprint $table){
3 $table->dropColumn('phone');
4 });
5}
1Schema::table('users', function (Blueprint $table) {
2 if (Schema::hasColumn('users', 'phone')) {
3 $table->dropColumn('phone');
4 }
5});
1Schema::table('users', function (Blueprint $table) {
2 $table->dropColumn('name');
3});