🚀 initial commit

This commit is contained in:
user
2025-11-21 04:28:08 +01:00
commit e4a4cfae2b
678 changed files with 24872 additions and 0 deletions

21
app/Models/Tag.php Normal file
View File

@@ -0,0 +1,21 @@
<?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');
}
}