laravel / 10 / api / 10.x / illuminate / database / migrations / migration.html

Migration

abstract class Migration (View source)

Properties

protected string|null $connection

The name of the database connection to use.

bool $withinTransaction

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

Methods

string|null getConnection()

Get the migration connection name.

Details

string|null getConnection()

Get the migration connection name.

Return Value

string|null

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/10.x/Illuminate/Database/Migrations/Migration.html