This commit is contained in:
2026-04-15 23:34:01 +05:00
parent 17c7a84f71
commit 61e685b3ce
22 changed files with 38 additions and 17 deletions

View File

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