mostafaznv / nova-ckeditor

CkEditor 5 Field for Laravel Nova with Media & Snippet Browsers
https://mostafaznv.gitbook.io/nova-ckeditor/
MIT License
49 stars 20 forks source link

webp #89

Closed Brand3000 closed 9 months ago

Brand3000 commented 9 months ago

Hello! Why wouldn't you allow the webp format for the Image resource by default? Like so: rules('required', 'mimes:jpg,jpeg,png,gif,webp', 'max:5000')

mostafaznv commented 9 months ago

Hi, If you are referring to stubs/resources/Image.stub, it's essentially a stub file. After publishing it, you can customize its rules. I've made an update to the rules of that stub, and now, by default, webp format is allowed.

https://github.com/mostafaznv/nova-ckeditor/commit/68384048349c0563eca15cb2263c6537b98ed2c0