]> git.localhorst.tv Git - alttp.git/blobdiff - app/Models/Episode.php
track twitch category where chats were sent in
[alttp.git] / app / Models / Episode.php
index 7d3175c4778e19b72d9f9558610d9518a7103410..4b8a96a53e2061f527db4d88d089ac411f90e1d9 100644 (file)
@@ -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);
        }