mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 12:33:56 +00:00
Laravel Vapor - Debug uploading issue
This commit is contained in:
@@ -50,6 +50,12 @@ class CreateInvoiceDocumentProcessor
|
||||
|
||||
|
||||
$oMerger = PDFMerger::init();
|
||||
|
||||
$saveDirectory = storage_path('app/documents');
|
||||
if (!file_exists($saveDirectory)) {
|
||||
mkdir($saveDirectory, 0755, true);
|
||||
}
|
||||
|
||||
$order_pdf->save(storage_path('app/documents/temp.pdf'));
|
||||
|
||||
$oMerger->addPDF(storage_path('app/documents/temp.pdf'), 'all');
|
||||
|
||||
Reference in New Issue
Block a user