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:
@@ -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),
|
||||
];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user