]> git.localhorst.tv Git - alttp.git/blobdiff - app/Models/Channel.php
fix some twitch bot stuff
[alttp.git] / app / Models / Channel.php
index d68ba5884888838271dbceac3e9ab8b3a3314c4f..8b5ff9007e2359c93bc105cdcd9b7e13fb1f73ce 100644 (file)
@@ -9,6 +9,12 @@ class Channel extends Model
 {
        use HasFactory;
 
+       public function episodes() {
+               return $this->belongsToMany(Episode::class)
+                       ->using(Restream::class)
+                       ->withPivot('accept_comms', 'accept_tracker');
+       }
+
        public function organization() {
                return $this->belongsTo(Organization::class);
        }