Merge pull request 'Updated file upload directory for InvoiceInTransit resource to 'uploads/InvoiceInTransit'' (#543) from ranjith-dev into master
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled

Reviewed-on: #543
This commit was merged in pull request #543.
This commit is contained in:
2026-04-15 04:55:53 +00:00

View File

@@ -255,7 +255,7 @@ class InvoiceInTransitResource extends Resource
->reactive()
->required()
->disk('local')
->directory('uploads/temp'),
->directory('uploads/InvoiceInTransit'),
])
->action(function (array $data) {
InvoiceInTransit::truncate();
@@ -270,7 +270,7 @@ class InvoiceInTransitResource extends Resource
// Get original filename
$originalName = $uploadedFile->getClientOriginalName();
$path = $uploadedFile->storeAs('uploads/temp', $originalName, 'local'); // returns relative path
$path = $uploadedFile->storeAs('uploads/InvoiceInTransit', $originalName, 'local'); // returns relative path
$fullPath = Storage::disk('local')->path($path);