laravel delete file foreign table 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'
$table->dropPrimary('users_id_primary');
$table->dropIndex(['state']); // Drops index 'geo_state_index'