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

@@ -148,10 +148,7 @@ class Category extends Model
{
if (!in_array($this->image, ['null', null])) {
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 config('app.url') . '/' . $this->image;