class MigrateProcessor

internal  
 

Properties

protected int $beforeBatch
protected int $afterBatch

Methods

__construct(TestCase $testbench, Migrator $migrator, array $options = [])

Construct a new schema migrator.

up()

Run migration.

rollback()

Rollback migration.

int
dispatch(string $command, array|null $options = null)

Dispatch artisan command.

Details

at line 30
__construct(TestCase $testbench, Migrator $migrator, array $options = [])

Construct a new schema migrator.

Parameters

TestCase $testbench
Migrator $migrator
array $options

at line 42
MigrateProcessor up()

Run migration.

Return Value

MigrateProcessor

at line 72
MigrateProcessor rollback()

Rollback migration.

Return Value

MigrateProcessor

at line 121
protected int dispatch(string $command, array|null $options = null)

Dispatch artisan command.

Parameters

string $command
array|null $options

Return Value

int