rayhanyulanda
File upload Required doesn't work
Grid::make(2)
->schema(function (?Model $record, Get $get) {
return DocumentCompleteness::where('type_of_leave_id', $get('type_of_leave_id'))
->get()
->map(function ($item) use ($record) {
$fileUpload = FileUpload::make('userTakeServiceDocument.' . $item->id)
->label($item->name)
->disk('local')
->directory('user-take-service-document/' . $item->id)
->storeFileNamesIn('userTakeServiceDocument.' . $item->id)
->required($item->is_required);
I tried to call required on FileUpload but it doesn't work. I've upgrade the filament but still doesn't work
1 replies