Answers for "laravel migration remove column needed in a foreign key constraint"

PHP
6

laravel migration remove column

public function up()
{
  Schema::table('table', function($table) {
    $table->dropColumn('column_name');
  });
}
Posted by: Guest on April-16-2020
0

laravel migration drop foreign keys

$table->dropPrimary('users_id_primary');
Posted by: Guest on November-30-2020

Code answers related to "laravel migration remove column needed in a foreign key constraint"

Browse Popular Code Answers by Language