]> git.localhorst.tv Git - alttp.git/blobdiff - app/Models/Episode.php
twitch chat bot controls
[alttp.git] / app / Models / Episode.php
index 2084a32b53f67c53ba0df0720c0f3d0c597973c8..7d3175c4778e19b72d9f9558610d9518a7103410 100644 (file)
@@ -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);
        }
@@ -35,7 +39,6 @@ class Episode extends Model
 
        protected $hidden = [
                'created_at',
-               'ext_id',
                'updated_at',
        ];