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

@@ -63,12 +63,8 @@ class Brand extends Model
{
if (!empty($this->image)) {
if (in_array(config('filesystems.default'), ['s3', 'minio'])) {
return Storage::temporaryUrl(
$this->image,
Date::now()->addMinutes(5)
);
return rtrim(config('filesystems.disks.s3.url'), '/') . '/' . ltrim($this->image, '/');
}
;
return (string) '/' . $this->image;
}