src/Migrations/Migrator.php
public function reset()
    {
        $migrations = $this->getMigrations(true);

        $this->requireFiles($migrations);

        $migrated = [];

        foreach ($migrations as $migration) {
            $data = $this->find($migration);

            if ($data->count()) {
                $migrated[] = $migration;

                $this->down($migration);

                $data->delete();
            }
        }

        return $migrated;
    }
public function reset()
    {
        $migrations = $this->getMigrations(true);

        $this->requireFiles($migrations);

        $migrated = [];

        foreach ($migrations as $migration) {
            $data = $this->find($migration);

            if ($data->count()) {
                $migrated[] = $migration;

                $this->down($migration);

                $data->delete();
            }
        }

        return $migrated;
    }
public function reset ( ) { $ migrations = $ this -> getMigrations ( true ) ; $ this -> requireFiles ( $ migrations ) ; $ migrated = [ ] ; foreach ( $ migrations as $ migration ) { $ data = $ this -> find ( $ migration ) ; if ( $ data -> count ( ) ) { $ migrated [ ] = $ migration ; $ this -> down ( $ migration ) ; $ data -> delete ( ) ; } } return $ migrated ; }
Reset migration.

@return array
Reset migration .