Improvement for Uploading of receipts
This commit is contained in:
@@ -60,7 +60,7 @@ class CreateInvoiceReceiptCommand {
|
|||||||
storage_path('app/private/' .$filename) . '.zip',
|
storage_path('app/private/' .$filename) . '.zip',
|
||||||
ZipArchive::CREATE | ZipArchive::OVERWRITE
|
ZipArchive::CREATE | ZipArchive::OVERWRITE
|
||||||
);
|
);
|
||||||
|
dd($receipt);
|
||||||
$zip->addFile(storage_path('app/private/' . $tmpFileName ), 'antrag.pdf');
|
$zip->addFile(storage_path('app/private/' . $tmpFileName ), 'antrag.pdf');
|
||||||
$zip->addFile(storage_path('app/private/' . $receipt), 'beleg.pdf');
|
$zip->addFile(storage_path('app/private/' . $receipt), 'beleg.pdf');
|
||||||
|
|
||||||
|
|||||||
@@ -16,12 +16,6 @@ class WebDavProvider {
|
|||||||
public function uploadFile(string $fileName) : bool {
|
public function uploadFile(string $fileName) : bool {
|
||||||
$baseDir = storage_path('app/private/');
|
$baseDir = storage_path('app/private/');
|
||||||
|
|
||||||
return $this->webDavClient->upload_file($baseDir . $fileName, $this->workingDirectory . '/'.
|
return $this->webDavClient->upload_file($baseDir . $fileName, $this->workingDirectory . '/');
|
||||||
basename($fileName)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Executable → Regular
+2
-1
@@ -24,11 +24,12 @@ rm docker-compose.prod
|
|||||||
rm justfile
|
rm justfile
|
||||||
rm phpunit.xml
|
rm phpunit.xml
|
||||||
rm -rf node_modules
|
rm -rf node_modules
|
||||||
rm composer.json
|
|
||||||
rm composer.lock
|
rm composer.lock
|
||||||
rm package-lock.json
|
rm package-lock.json
|
||||||
rm package.json
|
rm package.json
|
||||||
rm -rf docker
|
rm -rf docker
|
||||||
|
rm -rf database
|
||||||
|
r m-rf app/Installer
|
||||||
|
|
||||||
php artisan migrate --force
|
php artisan migrate --force
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user