laravel migration drop and recreate foreign key code example
Example 1: larael drop foreign key
Schema::table('posts', function (Blueprint $table) {
$table->dropForeign(['category_id']);
});
Example 2: laravel migration drop foreign keys
$table->dropPrimary('users_id_primary');