add index to a table in laravel code example
Example 1: laravel rollback last migration
php artisan migrate:rollback --step=1
Example 2: laravel migration index
$table->index(['account_id', 'created_at']);
Example 3: laravel dropIndex
Schema::table('geo', function (Blueprint $table) {
$table->dropIndex(['state']); // Drops index 'geo_state_index'
});