mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-app.git
synced 2025-12-13 23:56:47 +00:00
22 lines
401 B
PHP
22 lines
401 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
class Tag extends \Spatie\Tags\Tag
|
|
{
|
|
public function courses()
|
|
{
|
|
return $this->morphedByMany(Course::class, 'taggable');
|
|
}
|
|
|
|
public function libraryItems()
|
|
{
|
|
return $this->morphedByMany(LibraryItem::class, 'taggable');
|
|
}
|
|
|
|
public function episodes()
|
|
{
|
|
return $this->morphedByMany(Episode::class, 'taggable');
|
|
}
|
|
}
|