This commit is contained in:
2026-04-16 02:43:57 +05:00
parent 18ffc772e3
commit 6a4221f0a5
4 changed files with 7 additions and 23 deletions

View File

@@ -54,7 +54,7 @@ class Screen extends Model
{
if (!empty($this->path)) {
if (in_array(config('filesystems.default'), ['s3', 'minio'])) {
return Storage::url($this->path);
return rtrim(config('filesystems.disks.s3.url'), '/') . '/' . ltrim($this->path, '/');
}
return config('app.url') . '/' . $this->path;
}
@@ -69,7 +69,7 @@ class Screen extends Model
{
if (!empty($this->path_thumb)) {
if (in_array(config('filesystems.default'), ['s3', 'minio'])) {
return Storage::url($this->path_thumb);
return rtrim(config('filesystems.disks.s3.url'), '/') . '/' . ltrim($this->path_thumb, '/');
}
return config('app.url') . '/' . $this->path_thumb;
}