class MigrationPublisher (View source)
protected array | $existing | A cache of migrations at a given destination. |
void | __construct(Filesystem $files) Create a new migration publisher instance. | |
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. |
Create a new migration publisher instance.
Publish the given package's migrations.
Get the fresh migrations for the source.
Determine if the migration is already published.
Get the existing migration names from the destination.
Get the file list from the source directory.
Get the new migration name.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.5/Illuminate/Foundation/MigrationPublisher.html