idea-php-laravel-plugin
idea-php-laravel-plugin copied to clipboard
Feature Request:Add new things to autocomplete
First of all I would like to thank you this great plugin!
I found that it will be useful to autocomplete 2 things here.
- In migrations Let say we have something like this in migration
Schema::table('balances', function (Blueprint $table) {
$table->foreign('user_id')->references('id')->on('users');
$table->foreign('currency_id')->references('id')->on('currencies');
});
1.1) That will be cool to autocomplete balances
(or other table)
1.2) it's nice to autocomplete the methods params (tables and columns) of Blueprint
and Fluent
like foreign
, on
, dropForeign
, and etc.
- In Models Let say we have something like this in model
class Operation extends Model
{
protected $visible = [
'id',
'name',
];
protected $fillable = [
'name',
];
}
2.1) That will be cool to autocomplete columns $visible
and $fillable
Is there any thing that I can help you with?
Do you want to use Database tab of Idea or what? I don't want to go directly to database. Sometimes it's not possible(vagrant, etc.) So, we can use Eloquent models... get table names and field names, generated by ide-helper:models.. the only way I see...
I was thinking of database tab, I use vagrant you can configure to use it there. But ide-helper way sounds cool too.
Also a good one is autocomplete in where
method of model like Operation::where('name', 'add')