Answers for "laravel 6 move primary key from column to another"

PHP
1

laravel drop column softdeletes

public function down()
{
  Schema::table('users', function (Blueprint $table) {
    $table->dropSoftDeletes();
  });
}
Posted by: Guest on September-04-2020
-2

schema add column laravel

Schema::table('users', function($table) {
    $table->string("title");
    $table->text("description");
    $table->timestamps();
});
Posted by: Guest on August-24-2020

Code answers related to "laravel 6 move primary key from column to another"

Browse Popular Code Answers by Language