protected function resetMigrations(array $migrations, array $paths, array $options)
    {
        // Since the getRan method that retrieves the migration name just gives us the
        // migration name, we will format the names into objects with the name as a
        // property on the objects so that we can pass it to the rollback method.
        $migrations = array_map(function ($m) {
            return (object)['migration' => $m];
        }, $migrations);

        return $this->rollbackMigrations($migrations, $paths, $options);
    }
protected function resetMigrations(array $migrations, array $paths, array $options)
    {
        // Since the getRan method that retrieves the migration name just gives us the
        // migration name, we will format the names into objects with the name as a
        // property on the objects so that we can pass it to the rollback method.
        $migrations = array_map(function ($m) {
            return (object)['migration' => $m];
        }, $migrations);

        return $this->rollbackMigrations($migrations, $paths, $options);
    }
protected function resetMigrations ( array $ migrations , array $ paths , array $ options ) { // Since the getRan method that retrieves the migration name just gives us the // migration name, we will format the names into objects with the name as a // property on the objects so that we can pass it to the rollback method. $ migrations = array_map ( function ( $ m ) { return ( object ) [ 'migration' => $ m ] ; } , $ migrations ) ; return $ this -> rollbackMigrations ( $ migrations , $ paths , $ options ) ; }
Reset the given migrations.

@param array $migrations
@param array $paths
@param array $options

@return array
@throws \Exception
Reset the given migrations .