X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=app%2FModels%2FEpisode.php;h=4b8a96a53e2061f527db4d88d089ac411f90e1d9;hb=HEAD;hp=1c16f7f4a9ac7f8fab1bf2719c666514fa2c45cc;hpb=4d1002bb1c326adfa751666e843d8af686069e13;p=alttp.git diff --git a/app/Models/Episode.php b/app/Models/Episode.php index 1c16f7f..4b8a96a 100644 --- a/app/Models/Episode.php +++ b/app/Models/Episode.php @@ -24,6 +24,10 @@ class Episode extends Model return $this->crew()->where('confirmed', true); } + public function confirmedCrewOfChannel(Channel $channel) { + return $this->confirmedCrew()->where('channel_id', '=', $channel->id); + } + public function event() { return $this->belongsTo(Event::class); } @@ -39,7 +43,6 @@ class Episode extends Model protected $hidden = [ 'created_at', - 'ext_id', 'updated_at', ];