Laravel Using Schema builder


Example

Within the Schema Builder, use the Schema facade with any connection. Run the connection() method to specify which connection to use:

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