Explicitly use document disk path
This commit is contained in:
parent
9929ea18d5
commit
3883fb6d3c
|
|
@ -329,7 +329,7 @@ class ClientController extends BaseController
|
|||
//delete all documents
|
||||
$client->documents->each(function ($document) {
|
||||
try {
|
||||
Storage::disk(config('filesystems.default'))->delete($document->url);
|
||||
Storage::disk($document->disk)->delete($document->url);
|
||||
} catch (\Exception $e) {
|
||||
nlog($e->getMessage());
|
||||
}
|
||||
|
|
|
|||
|
|
@ -926,7 +926,12 @@ class Client extends BaseModel implements HasLocalePreference
|
|||
{
|
||||
return $this->company->company_key.'/';
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* document_filepath
|
||||
* @deprecated. not used.
|
||||
* @return string
|
||||
*/
|
||||
public function document_filepath(): string
|
||||
{
|
||||
return $this->company->company_key.'/documents/';
|
||||
|
|
|
|||
Loading…
Reference in New Issue