laravel 6 move primary key from column to another code example
Example 1: laravel drop column softdeletes
public function down()
{
Schema::table('users', function (Blueprint $table) {
$table->dropSoftDeletes();
});
}
Example 2: schema add column laravel
Schema::table('users', function($table) {
$table->string("title");
$table->text("description");
$table->timestamps();
});