test
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user