src/Http/Controllers/Admin/ApiController.php
private function getDestinations($name, $location)
    {
        $selected     = ($isHome = $location === '/') ? $name : "{$location}/{$name}";
        $destinations = $this->media->directories($location)
            ->pluck('path')
            ->reject(function ($path) use ($selected) {
                return $path === $selected;
            })
            ->values();

        if ( ! $isHome)
            $destinations->prepend('..');

        return $destinations;
    }
private function getDestinations($name, $location)
    {
        $selected     = ($isHome = $location === '/') ? $name : "{$location}/{$name}";
        $destinations = $this->media->directories($location)
            ->pluck('path')
            ->reject(function ($path) use ($selected) {
                return $path === $selected;
            })
            ->values();

        if ( ! $isHome)
            $destinations->prepend('..');

        return $destinations;
    }
private function getDestinations ( $ name , $ location ) { $ selected = ( $ isHome = $ location === '/' ) ? $ name : "{$location}/{$name}" ; $ destinations = $ this -> media -> directories ( $ location ) -> pluck ( 'path' ) -> reject ( function ( $ path ) use ( $ selected ) { return $ path === $ selected ; } ) -> values ( ) ; if ( ! $ isHome ) $ destinations -> prepend ( '..' ) ; return $ destinations ; }
Get the destinations paths.

@param  string  $name
@param  string  $location

@return \Arcanesoft\Media\Entities\DirectoryCollection
Get the destinations paths .