drop key laravel code example
Example 1: drop foreign key
ALTER TABLE table_name
DROP CONSTRAINT fk_name;
Example 2: laravel remove foreign key
$table->dropForeign('posts_user_id_foreign');
ALTER TABLE table_name
DROP CONSTRAINT fk_name;
$table->dropForeign('posts_user_id_foreign');