1
0
forked from poc/pds

Added comma at end of FileUpload -> invoice_material -> directory

This commit is contained in:
dhanabalan
2025-04-23 21:00:09 +05:30
parent 6c119778c6
commit 3d744e8183

View File

@@ -560,14 +560,13 @@ class InvoiceValidationResource extends Resource
->options(Plant::pluck('name', 'id')->toArray()) // Fetch plant names and IDs
->label('Select Plant')
->required()
->reactive()
->default(function () {
return optional(InvoiceValidation::latest()->first())->plant_id;
})
->afterStateUpdated(function ($state, callable $set, callable $get) {
$set('invoice_material', null);
}),
})
->reactive(),
FileUpload::make('invoice_material')
->label('Invoice Material')
@@ -577,8 +576,7 @@ class InvoiceValidationResource extends Resource
->storeFiles(false) // prevent auto-storing
->disk('local')
->visible(fn (Get $get) => !empty($get('plant_id')))
->directory('uploads/temp')
->directory('uploads/temp'),
])
->action(function (array $data) {