This commit is contained in:
2026-04-15 20:12:12 +05:00
parent 9e82ebc07e
commit d7ec26d246
5 changed files with 14 additions and 14 deletions

View File

@@ -62,7 +62,7 @@ class Brand extends Model
public function getImage(): string
{
if (!empty($this->image)) {
if (in_array(env('FILESYSTEM_DISK'), ['s3', 'minio'])) {
if (in_array(config('filesystems.default'), ['s3', 'minio'])) {
return Storage::temporaryUrl(
$this->image,
Date::now()->addMinutes(5)