diff --git a/src/Zipper.php b/src/Zipper.php index 4ff79ac..bf9a624 100644 --- a/src/Zipper.php +++ b/src/Zipper.php @@ -23,7 +23,7 @@ public static function route(Collection|array $files, ?string $filename = null): public static function create(Collection|array $files, ?string $filename = null) { - $files = collect(self::files($files))->filter(fn ($file) => self::fileExists($file)); + $files = collect(self::files($files))->filter(fn ($file) => self::fileExists($file))->all(); $zip = Zip::create(self::filename($filename), $files);