function getLinks($path, $certs)
    {
        $config = $this->config->read();

        return collect($this->files->scandir($path))->mapWithKeys(function ($site) use ($path) {
            return [$site => $this->files->readLink($path.'/'.$site)];
        })->map(function ($path, $site) use ($certs, $config) {
            $secured = $certs->has($site);
            $url = ($secured ? 'https': 'http').'://'.$site.'.'.$config['tld'];

            return [
                'site' => $site,
                'secured' => $secured ? ' X': '',
                'url' => $url,
                'path' => $path,
            ];
        });
    }
function getLinks($path, $certs)
    {
        $config = $this->config->read();

        return collect($this->files->scandir($path))->mapWithKeys(function ($site) use ($path) {
            return [$site => $this->files->readLink($path.'/'.$site)];
        })->map(function ($path, $site) use ($certs, $config) {
            $secured = $certs->has($site);
            $url = ($secured ? 'https': 'http').'://'.$site.'.'.$config['tld'];

            return [
                'site' => $site,
                'secured' => $secured ? ' X': '',
                'url' => $url,
                'path' => $path,
            ];
        });
    }
function getLinks ( $ path , $ certs ) { $ config = $ this -> config -> read ( ) ; return collect ( $ this -> files -> scandir ( $ path ) ) -> mapWithKeys ( function ( $ site ) use ( $ path ) { return [ $ site => $ this -> files -> readLink ( $ path . '/' . $ site ) ] ; } ) -> map ( function ( $ path , $ site ) use ( $ certs , $ config ) { $ secured = $ certs -> has ( $ site ) ; $ url = ( $ secured ? 'https' : 'http' ) . '://' . $ site . '.' . $ config [ 'tld' ] ; return [ 'site' => $ site , 'secured' => $ secured ? ' X' : '' , 'url' => $ url , 'path' => $ path , ] ; } ) ; }
Get list of links and present them formatted.

@param string $path
@param \Illuminate\Support\Collection $certs
@return \Illuminate\Support\Collection
Get list of links and present them formatted .