how to update table primary key when foreign keys delete laravel code example
Example 1: laravel remove foreign key
$table->dropForeign('posts_user_id_foreign');
Example 2: laravel migration drop foreign keys
$table->dropIndex(['state']); // Drops index 'geo_state_index'