class Illuminate / Database / Schema / SchemaState
abstract

SchemaState

Properties

protected

$connection Connection

The connection instance.

Default: null
protected

$files Filesystem

The filesystem instance.

Default: null
protected

$migrationTable string

The name of the application's migration table.

Default: 'migrations'
protected

$processFactory callable

The process factory callback.

Default: null
protected

$output callable

The output callable instance.

Default: null

Methods

public

__construct ( Connection $connection , Filesystem $files , callable $processFactory ) : void

Create a new dumper instance.

Parameters

public abstract

dump ( Connection $connection , $path ) : void

Dump the database's schema into a file.

Parameters

public abstract

load ( $path ) : void

Load the given schema file into the database.

Parameters

  • $path string
public

makeProcess ( $arguments ) : Symfony\...\Process

Create a new process instance.

Parameters

  • $arguments mixed
public

withMigrationTable ( string $table ) : $this

Specify the name of the application's migration table.

Parameters

  • $table string
public

handleOutputUsing ( callable $output ) : $this

Specify the callback that should be used to handle process output.

Parameters

  • $output callable