]> git.localhorst.tv Git - alttp.git/blobdiff - app/Models/Event.php
track twitch category where chats were sent in
[alttp.git] / app / Models / Event.php
index 44bc69be067f3722f0bb6e9b8b37a94147becb3d..331a384f8d1147deb04292552bdfec15a156eef4 100644 (file)
@@ -10,12 +10,23 @@ class Event extends Model
 
        use HasFactory;
 
+       public function description() {
+               return $this->belongsTo(Technique::class);
+       }
+
        public function episodes() {
                return $this->hasMany(Episode::class);
        }
 
        protected $casts = [
+               'end' => 'datetime',
+               'start' => 'datetime',
                'visible' => 'boolean',
        ];
 
+       protected $hidden = [
+               'created_at',
+               'updated_at',
+       ];
+
 }