This commit is contained in:
2026-04-16 04:05:10 +05:00
parent eea40876a4
commit 2ba5677c45
18 changed files with 35 additions and 84 deletions

View File

@@ -59,10 +59,7 @@ class Screen extends Model
{
if (!empty($this->path)) {
if (in_array(env('FILESYSTEM_DISK'), ['s3', 'minio'])) {
return Storage::temporaryUrl(
$this->path,
Date::now()->addMinutes(5)
);
return Storage::url($this->path);
}
return (string) $this->path;
}
@@ -77,10 +74,7 @@ class Screen extends Model
{
if (!empty($this->path_thumb)) {
if (in_array(env('FILESYSTEM_DISK'), ['s3', 'minio'])) {
return Storage::temporaryUrl(
$this->path_thumb,
Date::now()->addMinutes(5)
);
return Storage::url($this->path_thumb);
}
return (string) $this->path_thumb;
}