laravel migration drop foreign key if exists code example
Example 1: laravel migration drop foreign keys
$table->dropPrimary('users_id_primary');
Example 2: laravel migration drop foreign keys
$table->dropIndex(['state']); // Drops index 'geo_state_index'