This commit is contained in:
nurmuhammet committed 2025-10-29 00:25:27 +05:00
1 parent 40d7d39ba6
commit 74a8556ba8
1 file changed
+2 -5
@@ -31,10 +31,7 @@ public function downloadCardRequisite(Card $record, Component $livewire)
$path = $this->generateFile($record, $response); $path = $this->generateFile($record, $response);
return response()->download( return response()->download(public_path($path));
name: 'kart-rekwizit.docx',
url: url($path)
);
} }
/** /**
@@ -96,6 +93,6 @@ public function generateFile(Card $model, object $response)
$templateProcessor->saveAs($filePath); $templateProcessor->saveAs($filePath);
return "files/card-requisite/{$unique_folder_name}/{$model->id}.docx"; return "files/card-requisite/{$unique_folder_name}/kart-rekwizit-{$model->id}.docx";
} }
} }