This commit is contained in:
2025-10-29 00:25:27 +05:00
parent 40d7d39ba6
commit 74a8556ba8

View File

@@ -31,10 +31,7 @@ class CardRequisiteRepository
$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 @@ class CardRequisiteRepository
$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";
} }
} }