public function allDirectories()
    {
        $directories = $this->disk->allDirectories('/');

        return collect($directories)->filter(function ($directory) {
            return !(starts_with($directory, '.'));
        })->map(function ($directory) {
            return DIRECTORY_SEPARATOR.$directory;
        })->reduce(function ($allDirectories, $directory) {
            $parts = explode('/', $directory);
            $name = str_repeat('&nbsp;', (count($parts)) * 4).basename($directory);

            $allDirectories[$directory] = $name;

            return $allDirectories;
        }, collect())->prepend($this->breadcrumbRootLabel, '/');
    }
public function allDirectories()
    {
        $directories = $this->disk->allDirectories('/');

        return collect($directories)->filter(function ($directory) {
            return !(starts_with($directory, '.'));
        })->map(function ($directory) {
            return DIRECTORY_SEPARATOR.$directory;
        })->reduce(function ($allDirectories, $directory) {
            $parts = explode('/', $directory);
            $name = str_repeat('&nbsp;', (count($parts)) * 4).basename($directory);

            $allDirectories[$directory] = $name;

            return $allDirectories;
        }, collect())->prepend($this->breadcrumbRootLabel, '/');
    }
public function allDirectories ( ) { $ directories = $ this -> disk -> allDirectories ( '/' ) ; return collect ( $ directories ) -> filter ( function ( $ directory ) { return ! ( starts_with ( $ directory , '.' ) ) ; } ) -> map ( function ( $ directory ) { return DIRECTORY_SEPARATOR . $ directory ; } ) -> reduce ( function ( $ allDirectories , $ directory ) { $ parts = explode ( '/' , $ directory ) ; $ name = str_repeat ( '&nbsp;' , ( count ( $ parts ) ) * 4 ) . basename ( $ directory ) ; $ allDirectories [ $ directory ] = $ name ; return $ allDirectories ; } , collect ( ) ) -> prepend ( $ this -> breadcrumbRootLabel , '/' ) ; }
Show all directories that the selected item can be moved to.

@return array
Show all directories that the selected item can be moved to .