ctessier / nova-advanced-image-field

🌄 📐 A Laravel Nova advanced image field with cropping and resizing using Vue Advanced Cropper and Intervention Image
https://novapackages.com/packages/ctessier/nova-advanced-image-field
MIT License
100 stars 26 forks source link

Add option to preserve old image when updating #82

Closed Woeler closed 1 year ago

Woeler commented 2 years ago

This is a simple change to allow preserving the old image file when the image is updating. I have a usecase where I do not want the original file to be deleted from the server. This simple optional setting allows for this.

simple usage:

AdvancedImage::make('image')
    ->disk('public')
    ->path('news')
    ->preserveOldFileOnUpdate(true),
sonarcloud[bot] commented 2 years ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information