diff --git a/src/Zipper.php b/src/Zipper.php index 5d112b0..e19eddf 100644 --- a/src/Zipper.php +++ b/src/Zipper.php @@ -18,7 +18,6 @@ public function __construct() { $this->zip = new ZipArchive(); $this->disk = Storage::disk(config('zipper.disk')); - $this->filename = time() . '.zip'; } public function disk(string $disk): self diff --git a/src/ZipperTags.php b/src/ZipperTags.php index 6517b3c..126c2e7 100755 --- a/src/ZipperTags.php +++ b/src/ZipperTags.php @@ -13,7 +13,7 @@ public function wildcard() { return (new Zipper()) ->files($this->context->get($this->method)->value()) - ->filename($this->params->get('filename')) + ->filename($this->params->get('filename') ?? time()) ->save() ->url(); }