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.

bool
shouldRun()

Determine if this migration should run.

Details

string|null getConnection()

Get the migration connection name.

Return Value

string|null

bool shouldRun()

Determine if this migration should run.

Return Value

bool

Laravel Cloud is the best place to deploy Laravel, Nuxt, Express, Hono, Node.js, Bun, Go, Flask, Python, and more, with dedicated infrastructure available on AWS through Laravel Private Cloud.