Closed romanzipp closed 3 years ago
Thanks for your PR! I'll have a look, will probably be friday 17th or 24th.
Does this PR aim to be backwards compatible, so could it be released as v2.x?
I've updated the validation rules from required
to nullable
since the props itself are not required. Should be compatible with older versions š
In an attempt to replace the image storing process (using spatie/laravel-medialibrary), I have overridden the default provided Controller but needed some kind of information to associate the image with a model.
This PR introduces
resourceName
andresourceId
as new parameters to be provided for the upload controller.This is my custom upload controller: