mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-app.git
synced 2026-05-03 16:24:55 +00:00
1f0bfba0d3
🛠️ **Factory:** Created factories for `TwitterAccount`, `EmailCampaign`, `EmailTexts`, and `BookCase`. ✨ **Helper:** Added `NostrHelper` with methods for generating fake/mocked Nostr data. ⬆️ **Dependencies:** Updated multiple Composer dependencies including `laravel/framework`, `astrotomic/laravel-translatable`, and others to their latest versions.
26 lines
478 B
PHP
26 lines
478 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
|
|
class Tag extends \Spatie\Tags\Tag
|
|
{
|
|
use HasFactory;
|
|
|
|
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');
|
|
}
|
|
}
|