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

@param array  $paths
@param string $basePath

@return \Illuminate\Support\Collection
Get collection of realpath paths .