advanced-nova-media-library icon indicating copy to clipboard operation
advanced-nova-media-library copied to clipboard

Use different storage for collections

Open jruszo opened this issue 5 years ago • 1 comments

Hello!

I want to use different storage backend for different media collections. As I see thats possible in the spatie's package, as toMediaCollection('downloads', 'local'); ` supports 2 parameter (collection name, storage name) However this package doesn't support the 2nd parameter: https://github.com/ebess/advanced-nova-media-library/blob/master/src/Fields/Media.php#L192

How could I use different storages for different media collections?

Thank you!

jruszo avatar Feb 27 '20 10:02 jruszo

your model : public function registerMediaCollections(): void { $this->addMediaCollection($this->table . '_images') ->useDisk( your filesystems name ); }

loveyuxiao avatar May 13 '20 04:05 loveyuxiao