MigrationRepositoryInterface::getLast()

array getLast() Get the last migration batch. Return Value array

MigrationRepositoryInterface::delete()

void delete(object $migration) Remove a migration from the log. Parameters object $migration Return Value void

MigrationRepositoryInterface::createRepository()

void createRepository() Create the migration repository data store. Return Value void

MigrationRepositoryInterface

MigrationRepositoryInterface interface MigrationRepositoryInterface (View source) Methods array getRan() Get the ran migrations for a given package. array getMigrations(int $steps) Get list of migrations. array getLast() Get the last migration batch. void log(string $file, int $batch) Log that a migration was run. void delete(object $migration) Remove a migration from the log. int getNextBatchNumber() Get the next migration batch number. void createRepository

MigrationPublisher::__construct()

void __construct(Filesystem $files) Create a new migration publisher instance. Parameters Filesystem $files Return Value void

MigrationPublisher::publish()

array publish(string $source, string $destination) Publish the given package's migrations. Parameters string $source string $destination Return Value array

MigrationPublisher::migrationExists()

bool migrationExists(string $migration, string $destination) Determine if the migration is already published. Parameters string $migration string $destination Return Value bool

MigrationPublisher::getExistingMigrationNames()

array getExistingMigrationNames(string $destination) Get the existing migration names from the destination. Parameters string $destination Return Value array

MigrationPublisher

MigrationPublisher class MigrationPublisher (View source) Methods void __construct(Filesystem $files) Create a new migration publisher instance. array publish(string $source, string $destination) Publish the given package's migrations. bool migrationExists(string $migration, string $destination) Determine if the migration is already published. array getExistingMigrationNames(string $destination) Get the existing migration names from the destination.

MigrationCreator::__construct()

void __construct(Filesystem $files) Create a new migration creator instance. Parameters Filesystem $files Return Value void