This commit is contained in:
2026-04-15 20:33:58 +05:00
parent e54b7f1089
commit 17c7a84f71
6 changed files with 12 additions and 30 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 Storage::url($this->image);
}
return config('app.url') . '/' . $this->image;