mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
if link
This commit is contained in:
@@ -33,6 +33,7 @@ class Episode extends Resource
|
||||
public static function afterUpdate(NovaRequest $request, Model $model)
|
||||
{
|
||||
if ($request->tags) {
|
||||
if ($model->data['link']) {
|
||||
$lecturer = \App\Models\Lecturer::updateOrCreate(['name' => $model->podcast->title], [
|
||||
'team_id' => 1,
|
||||
'active' => true,
|
||||
@@ -70,6 +71,7 @@ class Episode extends Resource
|
||||
->attach($libraryItem);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static function afterCreate(NovaRequest $request, Model $model)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user