small changes

This commit is contained in:
F4ilji
2025-06-14 19:32:38 +05:00
parent 17392cbe25
commit b1d5f4ed3d
4 changed files with 21 additions and 23 deletions
@@ -34,7 +34,7 @@ class FilesBlock implements BlockSchema
FileUpload::make('path')
->label('Файл')
->required()
->helperText('Поддерживаются PDF, Word, Excel, PowerPoint и ZIP файлы (макс. 500KB)')
->helperText('Поддерживаются PDF, Word, Excel, PowerPoint и ZIP файлы')
->getUploadedFileNameForStorageUsing(
fn (TemporaryUploadedFile $file): string =>
str(Str::slug(pathinfo($file->getClientOriginalName(), PATHINFO_FILENAME) . '-' . Carbon::now()->timestamp) . '.' . $file->getClientOriginalExtension())