5 use Illuminate\Database\Eloquent\Factories\HasFactory;
6 use Illuminate\Database\Eloquent\Model;
8 class Episode extends Model
13 public function channels() {
14 return $this->belongsToMany(Channel::class)
15 ->using(Restream::class)
16 ->withPivot('accept_comms', 'accept_tracker');
19 public function crew() {
20 return $this->hasMany(EpisodeCrew::class);
23 public function event() {
24 return $this->belongsTo(Event::class);
27 public function players() {
28 return $this->hasMany(EpisodePlayer::class);
32 'confirmed' => 'boolean',
33 'start' => 'datetime',