laravel migration turn off foreign key check 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'