LaravelCLITasksMigrateMigrator

Summary

No public properties found
No constants found
No private methods found
No private properties found
N/A
File
cli asksmigratemigrator.php
Package
Default
Class hierarchy
LaravelCLITasksMigrateMigrator

Tags

None found

Properties

$resolver

$resolver : \Laravel\CLI\Tasks\Migrate\Resolver

The migration resolver instance.

Type

LaravelCLITasksMigrateResolver

Tags

None found

$database

$database : \Laravel\CLI\Tasks\Migrate\Database

The migration database instance.

Type

LaravelCLITasksMigrateDatabase

Tags

None found

Methods

__construct()

__construct(\Laravel\CLI\Tasks\Migrate\Resolver  $resolver, \Laravel\CLI\Tasks\Migrate\Database  $database) : void

Create a new instance of the Migrator CLI task.

Parameters

LaravelCLITasksMigrateResolver $resolver
LaravelCLITasksMigrateDatabase $database

Tags

None found

run()

run(array  $arguments = array()) : void

Run a database migration command.

Parameters

array $arguments

Tags

None found

migrate()

migrate(string  $bundle = null, integer  $version = null) : void

Run the outstanding migrations for a given bundle.

Parameters

string $bundle
integer $version

Tags

None found

rollback()

rollback(array  $arguments = array()) : boolean

Rollback the latest migration command.

Parameters

array $arguments

Returns

boolean

Tags

None found

reset()

reset(array  $arguments = array()) : void

Rollback all of the executed migrations.

Parameters

array $arguments

Tags

None found

rebuild()

rebuild() : void

Reset the database to pristine state and run all migrations

Tags

None found

install()

install() : void

Install the database tables used by the migration system.

Tags

None found

make()

make(array  $arguments = array()) : string

Generate a new migration file.

Parameters

array $arguments

Returns

string

Tags

None found

stub()

stub(string  $bundle, string  $migration) : string

Get the stub migration with the proper class name.

Parameters

string $bundle
string $migration

Returns

string

Tags

None found

display()

display(array  $migration) : string

Get the migration bundle and name for display.

Parameters

array $migration

Returns

string

Tags

None found