X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=app%2FModels%2FChannel.php;h=d1f0fdc784d4f4e0f4078be186322b4a54901bd8;hb=98135a55c26ba5d485a0aa08aa4a3d1d42374cd9;hp=0536aef36e9638ace6387d2f3fbba3f50c2bcace;hpb=cde5d79cf2f09d61fa7b181cd3a1a19050a4aeb3;p=alttp.git diff --git a/app/Models/Channel.php b/app/Models/Channel.php index 0536aef..d1f0fdc 100644 --- a/app/Models/Channel.php +++ b/app/Models/Channel.php @@ -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 = [