For example in User table migration:
public function up()
{
Schema::create('users', function(Blueprint $table)
{
$table->increments('id');
$table->string('name');
$table->string('email')->unique();
$table->string('password', 60);
$table->rememberToken();
$table->timestamps();
});
}
unique() is not found
Using PHPStorm.
Probably because the string() call doesn't return proper phpdoc

The functions returns phpdoc. The return is Fluent.
It would be great to have support for chaining of schema methods. :(
@barryvdh
I added the following code to end of _ide_helper.php file. And the problem was solved.
namespace Illuminate\Support{
/**
* @method Fluent first()
* @method Fluent after($column)
* @method Fluent change()
* @method Fluent nullable()
* @method Fluent unsigned()
* @method Fluent unique()
* @method Fluent index()
* @method Fluent primary()
* @method Fluent default($value)
* @method Fluent onUpdate($value)
* @method Fluent onDelete($value)
* @method Fluent references($value)
* @method Fluent on($value)
*/
class Fluent {}
}
Before:

After:

The same issue is discussed here: https://github.com/barryvdh/laravel-ide-helper/issues/425
A more clean solution is to configure ide-helper to include fluent, as described here: https://github.com/barryvdh/laravel-ide-helper#automatic-phpdocs-generation-for-laravel-fluent-methods
@spawnia Lumen dont have vendor:publish command
Most helpful comment
@barryvdh
I added the following code to end of
_ide_helper.phpfile. And the problem was solved.Before:

After:
