X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=app%2FModels%2FEpisode.php;h=1c16f7f4a9ac7f8fab1bf2719c666514fa2c45cc;hb=4d1002bb1c326adfa751666e843d8af686069e13;hp=2084a32b53f67c53ba0df0720c0f3d0c597973c8;hpb=cde5d79cf2f09d61fa7b181cd3a1a19050a4aeb3;p=alttp.git diff --git a/app/Models/Episode.php b/app/Models/Episode.php index 2084a32..1c16f7f 100644 --- a/app/Models/Episode.php +++ b/app/Models/Episode.php @@ -20,6 +20,10 @@ class Episode extends Model return $this->hasMany(EpisodeCrew::class); } + public function confirmedCrew() { + return $this->crew()->where('confirmed', true); + } + public function event() { return $this->belongsTo(Event::class); }