storage url o'zgartirildi

This commit is contained in:
2026-04-28 15:02:06 +05:00
parent 3aa4601229
commit bb733d14c1
37 changed files with 282 additions and 407 deletions

View File

@@ -58,10 +58,7 @@ class Screen extends Model
public function getPath(): string
{
if (!empty($this->path)) {
if (in_array(env('FILESYSTEM_DISK'), ['s3', 'minio'])) {
return Storage::url($this->path);
}
return (string) $this->path;
return Storage::url($this->path);
}
return (string) 'image/no_screen.png';
@@ -73,10 +70,7 @@ class Screen extends Model
public function getPathThumb(): string
{
if (!empty($this->path_thumb)) {
if (in_array(env('FILESYSTEM_DISK'), ['s3', 'minio'])) {
return Storage::url($this->path_thumb);
}
return (string) $this->path_thumb;
return Storage::url($this->path_thumb);
}
return (string) 'image/no_screen_thumb.png';