Solution:
Use following code
/** Run the migrations.
*
* @return void
*/
public function up()
{
Schema::connection($this->connection)
->table('actions', function (Blueprint $collection)
{
$collection->index('name');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::connection($this->connection)
->table('actions', function (Blueprint $collection)
{
$collection->drop();
});
}
Src: https://github.com/jenssegers/laravel-mongodb/issues/859