plugin icon indicating copy to clipboard operation
plugin copied to clipboard

[Feature Request]: Autocomplete for Column Names in Migration Indexes

Open underwear opened this issue 2 years ago • 0 comments

Feature Description

I would appreciate an autocomplete feature in Laravel Idea for writing migrations and creating indexes.

Currently, when I write a code like:

Schema::create('carts', function (Blueprint $table) {
        $table->string('column1');
        $table->string('column2');

        $table->index(['column1', 'column2']);
}

I have to manually type column1 and column2 for $table->index(['column1', 'column2']).

It would be helpful if the IDE could suggest these columns based on the code above or the current database schema.

underwear avatar Dec 25 '23 11:12 underwear