mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
add podcasts
This commit is contained in:
@@ -61,6 +61,9 @@ class Episode extends Resource
|
||||
if ($model->data['image']) {
|
||||
$libraryItem->addMediaFromUrl($model->data['image'])
|
||||
->toMediaCollection('main');
|
||||
} else {
|
||||
$libraryItem->addMediaFromUrl($model->podcast->data['image'])
|
||||
->toMediaCollection('main');
|
||||
}
|
||||
$library->libraryItems()
|
||||
->attach($libraryItem);
|
||||
|
||||
Reference in New Issue
Block a user