strip_tags

This commit is contained in:
Benjamin Takats
2023-01-24 13:50:10 +01:00
parent a150b7c0e9
commit da3f3ac81a

View File

@@ -39,12 +39,9 @@ class Episode extends Resource
]);
$lecturer->addMediaFromUrl($model->podcast->data['image'])
->toMediaCollection('avatar');
$library = \App\Models\Library::updateOrCreate(
$library = \App\Models\Library::firstOrCreate(
[
'name' => $model->podcast->title
],
[
'language_codes' => [$model->podcast->language_code],
'name' => 'Podcasts'
]);
$libraryItem = $model->libraryItem()
->firstOrCreate([