laravel migration create index code example
Example 1: laravel migration index
$table->index(['account_id', 'created_at']);
Example 2: laravel dropIndex
Schema::table('geo', function (Blueprint $table) {
$table->dropIndex(['state']); // Drops index 'geo_state_index'
});
Example 3: laravel make migration
php artisan make:migration CreateUsersTable