media::copy doesn't seem to work as expected #2555
-
https://spatie.be/docs/laravel-medialibrary/v9/advanced-usage/moving-media#copying-media
In my case this error is raised after trying this code:
I'm using: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Okay... just got it working! My fault, for some other relations I already had own copy-process uning "model->getRelations()" which produced this unexpected error as Media-Relation doesn't support sync method there. I excluded 'media' there explicitly and now its working ;-) |
Beta Was this translation helpful? Give feedback.
Okay... just got it working! My fault, for some other relations I already had own copy-process uning "model->getRelations()" which produced this unexpected error as Media-Relation doesn't support sync method there. I excluded 'media' there explicitly and now its working ;-)