]> git.localhorst.tv Git - alttp.git/blobdiff - app/Models/Episode.php
limit chat command to confirmed crew
[alttp.git] / app / Models / Episode.php
index 2084a32b53f67c53ba0df0720c0f3d0c597973c8..1c16f7f4a9ac7f8fab1bf2719c666514fa2c45cc 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);
        }