src/Migration/Migrator.php
public function rollback(array $options = []): void
    {
        // We want to pull in the last batch of migrations that ran on the previous
        // migration operation. We'll then reverse those migrations and run each
        // of them "down" to reverse the last migration "operation" which ran.
        $migrations = $this->getMigrationsForRollback($options);

        if (count($migrations) === 0) {
            $this->notify->note('<info>Nothing to rollback.</info>');

            return;
        }

        $this->rollbackMigrations($migrations);
    }
public function rollback(array $options = []): void
    {
        // We want to pull in the last batch of migrations that ran on the previous
        // migration operation. We'll then reverse those migrations and run each
        // of them "down" to reverse the last migration "operation" which ran.
        $migrations = $this->getMigrationsForRollback($options);

        if (count($migrations) === 0) {
            $this->notify->note('<info>Nothing to rollback.</info>');

            return;
        }

        $this->rollbackMigrations($migrations);
    }
public function rollback ( array $ options = [ ] ) : void { // We want to pull in the last batch of migrations that ran on the previous // migration operation. We'll then reverse those migrations and run each // of them "down" to reverse the last migration "operation" which ran. $ migrations = $ this -> getMigrationsForRollback ( $ options ) ; if ( count ( $ migrations ) === 0 ) { $ this -> notify -> note ( '<info>Nothing to rollback.</info>' ) ; return ; } $ this -> rollbackMigrations ( $ migrations ) ; }
Rollback the last migration operation.

@param  array $options
@return void
Rollback the last migration operation .