class Migrator extends Migrator

Migrator

Properties

protected string $table

Methods

__construct(string $table, MigrationRepositoryInterface $repository, ConnectionResolverInterface $resolver, Filesystem $files)

Create a new migrator instance.

array
rollback(array|string $paths = [], array $options = [])

Rollback the last migration operation.

Collection
getRanMigrations()

Get all the ran migrations.

Details

at line 33
__construct(string $table, MigrationRepositoryInterface $repository, ConnectionResolverInterface $resolver, Filesystem $files)

Create a new migrator instance.

Parameters

string $table
MigrationRepositoryInterface $repository
ConnectionResolverInterface $resolver
Filesystem $files

at line 53
array rollback(array|string $paths = [], array $options = [])

Rollback the last migration operation.

Parameters

array|string $paths 路径
array $options 选项

Return Value

array

at line 110
Collection getRanMigrations()

Get all the ran migrations.

Return Value

Collection