Answers for "how to drop index column laravel migration"

PHP
1

laravel delete index

Schema::table('geo', function (Blueprint $table) {
    $table->dropIndex(['state']); // Drops index 'geo_state_index'
});
Posted by: Guest on July-28-2020
-2

laravel drop table migration

Schema::drop('users');

Schema::dropIfExists('users');
Posted by: Guest on April-27-2020

Code answers related to "how to drop index column laravel migration"

Browse Popular Code Answers by Language