muhdnorfirdaus
Uploaded files/image does not show when in edit page
All other data succesfully fetched except the files in FIleUpload
ComplainResource
Wizard\Step::make('Fault')
->schema([
Select::make('title')
->label('Disciplinary Action')
->options([
'merokok' => 'Merokok',
'berjudi' => 'Berjudi'
])
->required(),
TextInput::make('description')
->label('Details')
->maxLength(255)
->required(),
DateTimePicker::make('incident_date'),
FileUpload::make('file_path')
->disk('public')
->directory('complain')
->visibility('public')
->multiple()
->storeFileNamesIn('original_file_name')
->default(fn ($record) => $record?->complainFiles->pluck('file_path')->map(function ($path) {
return asset('storage/complain/' . basename($path));
})->toArray()),
]),
I've checked on the console but there is no error9 replies