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