X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=app%2FModels%2FEpisode.php;h=4b8a96a53e2061f527db4d88d089ac411f90e1d9;hb=HEAD;hp=7d3175c4778e19b72d9f9558610d9518a7103410;hpb=7c1db464de8560af8f72228fc311c34f38c1134d;p=alttp.git diff --git a/app/Models/Episode.php b/app/Models/Episode.php index 7d3175c..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); }