add time_added field to FilesBlock; update file upload logic to set timestamp and improve file display in FileBlock with additional metadata

This commit is contained in:
F4ilji
2025-07-25 12:36:17 +05:00
parent e403203e72
commit 16e7b9fe46
10 changed files with 211 additions and 66 deletions
@@ -28,13 +28,11 @@ class PersonBlock implements BlockSchema
FileUpload::make('photo')
->label('Фотография')
->image()
->helperText('Рекомендуемый формат: WebP')
->optimize('webp')
->resize(50)
->disk('public')
->directory('images')
->imageEditor()
->required()
->downloadable()
->openable(),
Repeater::make('info')
@@ -60,4 +58,4 @@ class PersonBlock implements BlockSchema
->itemLabel(fn (array $state): ?string => $state['column'] ?? null),
];
}
}
}