storage url o'zgartirildi
This commit is contained in:
@@ -30,12 +30,9 @@ class ContractTemplate extends Model
|
||||
public function full_path(): string
|
||||
{
|
||||
if (!empty($this->path)) {
|
||||
if (in_array(env('FILESYSTEM_DISK'), ['s3', 'minio'])) {
|
||||
return Storage::url($this->path);
|
||||
}
|
||||
return '/' . $this->path;
|
||||
return Storage::url($this->path);
|
||||
}
|
||||
|
||||
return asset('storage/' . $this->path);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user