class Illuminate / Database / Migrations / Migration
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.
abstract

Migration

Properties

protected

$connection string|null

The name of the database connection to use.

Default: null
public

$withinTransaction bool

Enables, if supported, wrapping the migration within a transaction.

Default: true

Methods

public

getConnection ( ) : string|null

Get the migration connection name.