class Illuminate / Database / Console / Migrations / RollbackCommand
You are viewing an older version of the documentation. For the latest, please visit master documentation.

RollbackCommand

Extends

Uses

Properties

protected

$name string

The console command name.

Default: 'migrate:rollback'
protected

$description string

The console command description.

Default: 'Rollback the last database migration'
protected

$migrator Migrator

The migrator instance.

Default: null

Methods

public

__construct ( Migrator $migrator ) : void

Create a new migration rollback command instance.

Parameters

public

handle ( ) : int

Execute the console command.

protected

getOptions ( ) : array

Get the console command options.