test
This commit is contained in:
@@ -48,9 +48,7 @@ class File extends Model
|
||||
{
|
||||
if (!empty($this->path)) {
|
||||
if (in_array(env('FILESYSTEM_DISK'), ['s3', 'minio'])) {
|
||||
return Storage::temporaryUrl(
|
||||
$this->path, Date::now()->addMinutes(5)
|
||||
);
|
||||
return Storage::url($this->path);
|
||||
}
|
||||
return (string) $this->path;
|
||||
}
|
||||
@@ -65,9 +63,7 @@ class File extends Model
|
||||
{
|
||||
if (!empty($this->path_thumb)) {
|
||||
if (in_array(env('FILESYSTEM_DISK'), ['s3', 'minio'])) {
|
||||
return Storage::temporaryUrl(
|
||||
$this->path_thumb, Date::now()->addMinutes(5)
|
||||
);
|
||||
return Storage::url($this->path_thumb);
|
||||
}
|
||||
return (string) $this->path_thumb;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user