cli/Valet/Site.php
/**
     * Get all of the log files for all sites.
     *
     * @param  array  $paths
     * @return array
     */
Get all of the log files for all sites.
@param  array  $paths
@return array
Get all of the log files for all sites . @param array $paths @return array
function logs($paths)
    {
        $files = collect();
        foreach ($paths as $path) {
            $files = $files->merge(collect($this->files->scandir($path))->map(function ($directory) use ($path) {
                $logPath = $path.'/'.$directory.'/storage/logs/laravel.log';
                if ($this->files->isDir(dirname($logPath))) {
                    return $this->files->touchAsUser($logPath);
                }
            })->filter());
        }
        return $files->values()->all();
    }
function logs ( $ paths ) { $ files = collect ( ) ; foreach ( $ paths as $ path ) { $ files = $ files -> merge ( collect ( $ this -> files -> scandir ( $ path ) ) -> map ( function ( $ directory ) use ( $ path ) { $ logPath = $ path . '/' . $ directory . '/storage/logs/laravel.log' ; if ( $ this -> files -> isDir ( dirname ( $ logPath ) ) ) { return $ this -> files -> touchAsUser ( $ logPath ) ; } } ) -> filter ( ) ) ; } return $ files -> values ( ) -> all ( ) ; }
Get all of the log files for all sites.
Get all of the log files for all sites .