test this
This commit is contained in:
parent
e74f2388f7
commit
05e1d29fcd
|
|
@ -83,7 +83,7 @@ public function create()
|
|||
foreach ($documents as $document){
|
||||
$attachment = new BrokerAttachment([
|
||||
'name' => $document->name,
|
||||
'document_id' => $document->id
|
||||
'broker_document_id' => $document->id
|
||||
]);
|
||||
$application->broker_attachments()->save($attachment);
|
||||
}
|
||||
|
|
@ -157,7 +157,7 @@ public function upload(DocumentUploadRequest $request,$attachment_id)
|
|||
|
||||
$filename = Str::snake($attachment->name).'.'.$uploadedFile->getClientOriginalExtension();
|
||||
|
||||
$directory = 'documents/'.Carbon::today()->year.'/'.$this->account->id;
|
||||
$directory = 'broker-documents/'.Carbon::today()->year.'/'.$this->account->id;
|
||||
|
||||
$path = $uploadedFile->storePubliclyAs($directory,$filename);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue