test
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user