]> git.localhorst.tv Git - alttp.git/blobdiff - app/Models/Channel.php
basic twitch join/part commands
[alttp.git] / app / Models / Channel.php
index 0536aef36e9638ace6387d2f3fbba3f50c2bcace..025bb34151cdd9ab56fa32b59c6f89412fd05616 100644 (file)
@@ -16,6 +16,10 @@ class Channel extends Model
                        ->first();
        }
 
+       public function crews() {
+               return $this->hasMany(ChannelCrew::class);
+       }
+
        public function episodes() {
                return $this->belongsToMany(Episode::class)
                        ->using(Restream::class)
@@ -29,6 +33,7 @@ class Channel extends Model
        protected $casts = [
                'chat_commands' => 'array',
                'languages' => 'array',
+               'join' => 'boolean',
        ];
 
        protected $hidden = [