使用架构构建器

在 Schema Builder 中,使用 Schema facade 与任何连接。运行 connection() 方法以指定要使用的连接:

Schema::connection('mysql2')->create('some_table', function($table)
{
    $table->increments('id'):
});