protected function realPath(array $paths, $basePath = '')
    {
        return collect($paths)->map(function ($path) use ($basePath) {
            return realpath($basePath.$path);
        })->filter(function ($path) {
            return $path;
        });
    }