class
Illuminate
/
Database
/
Console
/
Migrations
/
RollbackCommand
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.
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'
Methods
public
__construct ( Migrator $migrator ) : void
Create a new migration rollback command instance.
Parameters
- $migrator Migrator
public
handle ( ) : int
Execute the console command.
protected
getOptions ( ) : array
Get the console command options.