laravel database migration remove foreign key code example
Example 1: laravel remove foreign key
$table->dropForeign('posts_user_id_foreign');
Example 2: laravel migration drop foreign keys
$table->dropPrimary('users_id_primary');
$table->dropForeign('posts_user_id_foreign');
$table->dropPrimary('users_id_primary');