Skip to content

Commit

Permalink
hotfix url for gcs driver
Browse files Browse the repository at this point in the history
  • Loading branch information
roncodes committed Feb 13, 2024
1 parent 6587962 commit 04ae1ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Models/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public function getUrlAttribute()
/** @var $filesystem \Illuminate\Support\Facades\Storage */
$filesystem = $this->getFilesystem();

if ($disk === 's3') {
if ($disk === 's3' || $disk === 'gcs') {
$url = $filesystem->temporaryUrl($this->path, now()->addMinutes(30));
} else {
$url = $filesystem->url($this->path);
Expand Down

0 comments on commit 04ae1ac

Please sign in to comment.