1use Spatie\MediaLibrary\Models\Media;
2
3public function registerMediaConversions(Media $media = null)
4{
5 $this->addMediaConversion('thumb')
6 ->width(130)
7 ->height(130);
8}
9
10public function registerMediaCollections()
11{
12 $this->addMediaCollection('main')->singleFile();
13 $this->addMediaCollection('my_multi_collection');
14}