MigrationPublisher
class MigrationPublisher (View source)
Properties
protected array | $existing | A cache of migrations at a given destination. |
Methods
void
array
publish(string $source, string $destination)
Publish the given package's migrations.
array
getFreshMigrations(string $source, string $destination)
Get the fresh migrations for the source.
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.
array
getPackageMigrations(string $source)
Get the file list from the source directory.
string
getNewMigrationName(string $file, int $add)
Get the new migration name.
Details
void
__construct(Filesystem $files)
Create a new migration publisher instance.
array
publish(string $source, string $destination)
Publish the given package's migrations.
protected array
getFreshMigrations(string $source, string $destination)
Get the fresh migrations for the source.
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.
protected array
getPackageMigrations(string $source)
Get the file list from the source directory.
protected string
getNewMigrationName(string $file, int $add)
Get the new migration name.