MigrationStatus
final class MigrationStatus (View source)
Immutable snapshot of the migration status known to the framework.
Methods
__construct(array $registered, array $orphaned, bool $databaseAvailable = true)
Captures registered migration states, orphaned ledger entries, and history availability at one point in time.
Returns the registered migrations and their current states.
array
orphaned()
Returns applied migration identifiers that are no longer registered.
array
Indicates whether the database-backed migration history was available.
bool
Details
__construct
__construct(array $registered, array $orphaned, bool $databaseAvailable = true)
Captures registered migration states, orphaned ledger entries, and history availability at one point in time.
registered
array
registered()
Returns the registered migrations and their current states.
orphaned
array
orphaned()
Returns applied migration identifiers that are no longer registered.
databaseAvailable
bool
databaseAvailable()
Indicates whether the database-backed migration history was available.