spatie / laravel-medialibrary

Associate files with Eloquent models
https://spatie.be/docs/laravel-medialibrary
MIT License
5.78k stars 1.08k forks source link

Livewire 3 Max validation not working #3495

Closed QualityCodeSA closed 10 months ago

QualityCodeSA commented 10 months ago

Ad per doc I apply the 'images' => 'required|max:1', validation and I upload mutiple image and save form to validation working fine. After I upload one image and save it. Edit form in click on delete icon to remove existing image and upload new image then after save it to two image upload one existing and one new image.

https://spatie.be/docs/laravel-medialibrary/v11/handling-uploads-with-media-library-pro/handling-uploads-with-livewire-3#content-validating-the-collection

truthytech commented 10 months ago

https://github.com/spatie/laravel-medialibrary-pro/issues/566 might have sorted this out