Added comma at end of FileUpload -> invoice_material -> directory
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user