$model->podcast->language_code

This commit is contained in:
Benjamin Takats
2023-01-27 14:35:54 +01:00
parent 2b46013f20
commit 5ecaf43d6b
6 changed files with 92 additions and 51 deletions

View File

@@ -53,7 +53,9 @@ class Episode extends Resource
'episode_id' => $model->id,
'name' => $model->data['title'],
'type' => 'podcast_episode',
'language_code' => $model->podcast->language_code,
'language_code' => str($model->podcast->language_code)
->before('-')
->toString(),
'value' => null,
'excerpt' => $model->data['description'],
'subtitle' => $model->data['description'],