getUrl('thumbnail'); } public function assign($model, $collectionName) { $this->collection_name = $collectionName; $model->media()->save($this); } }