protected function getPaths()
    {
        $directory = new RecursiveDirectoryIterator($this->getMigrationPath());
        $iterator = new RecursiveIteratorIterator($directory);
        $paths = [];
        foreach ($iterator as $info) {
            if ($info->isDir()) {
                $paths[] = $info->getPath();
            }
        }

        return array_unique($paths);
    }
protected function getPaths()
    {
        $directory = new RecursiveDirectoryIterator($this->getMigrationPath());
        $iterator = new RecursiveIteratorIterator($directory);
        $paths = [];
        foreach ($iterator as $info) {
            if ($info->isDir()) {
                $paths[] = $info->getPath();
            }
        }

        return array_unique($paths);
    }
protected function getPaths ( ) { $ directory = new RecursiveDirectoryIterator ( $ this -> getMigrationPath ( ) ) ; $ iterator = new RecursiveIteratorIterator ( $ directory ) ; $ paths = [ ] ; foreach ( $ iterator as $ info ) { if ( $ info -> isDir ( ) ) { $ paths [ ] = $ info -> getPath ( ) ; } } return array_unique ( $ paths ) ; }
Recursively get all of the migration paths.

@return array
Recursively get all of the migration paths .