]> git.localhorst.tv Git - alttp.git/blobdiff - app/Models/Episode.php
sync episode channels
[alttp.git] / app / Models / Episode.php
index b4a4ec824ea3f3ccf13fc2b74d7e6e12755fece4..ddd92a6dd111e18715ca938101c79271720e59f6 100644 (file)
@@ -10,6 +10,10 @@ class Episode extends Model
 
        use HasFactory;
 
+       public function channels() {
+               return $this->belongsToMany(Channel::class);
+       }
+
        public function event() {
                return $this->belongsTo(Event::class);
        }
@@ -20,6 +24,13 @@ class Episode extends Model
 
        protected $casts = [
                'confirmed' => 'boolean',
+               'start' => 'datetime',
+       ];
+
+       protected $hidden = [
+               'created_at',
+               'ext_id',
+               'updated_at',
        ];
 
 }