How to replace the original file, imageEditor

I use FileUpload imageEditor. How to replace the original file, not create a new file again with v1, v2, v3, etc.?
Forms\Components\FileUpload::make('file_name')
->deletable(false)
->disk(fn(?Media $record) => $record->disk)
->preserveFilenames()
->image()
->imageEditor()
->imageEditorAspectRatios([
null,
'16:9',
'4:3',
'1:1',
]),
Forms\Components\FileUpload::make('file_name')
->deletable(false)
->disk(fn(?Media $record) => $record->disk)
->preserveFilenames()
->image()
->imageEditor()
->imageEditorAspectRatios([
null,
'16:9',
'4:3',
'1:1',
]),
No description
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server