]> git.localhorst.tv Git - alttp.git/blobdiff - app/Models/Episode.php
fix reevaluate command class name
[alttp.git] / app / Models / Episode.php
index 1c16f7f4a9ac7f8fab1bf2719c666514fa2c45cc..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);
        }
@@ -39,7 +43,6 @@ class Episode extends Model
 
        protected $hidden = [
                'created_at',
-               'ext_id',
                'updated_at',
        ];