Updated file upload directory for InvoiceInTransit resource to 'uploads/InvoiceInTransit' #543

Merged
jothi merged 1 commits from ranjith-dev into master 2026-04-15 04:55:53 +00:00
Showing only changes of commit e7dc16f444 - Show all commits

View File

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