]> git.localhorst.tv Git - alttp.git/blobdiff - app/Models/Channel.php
chat bot settings
[alttp.git] / app / Models / Channel.php
index 0536aef36e9638ace6387d2f3fbba3f50c2bcace..d1f0fdc784d4f4e0f4078be186322b4a54901bd8 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)
@@ -27,8 +31,11 @@ class Channel extends Model
        }
 
        protected $casts = [
+               'chat' => 'boolean',
                'chat_commands' => 'array',
+               'chat_settings' => 'array',
                'languages' => 'array',
+               'join' => 'boolean',
        ];
 
        protected $hidden = [