]> git.localhorst.tv Git - alttp.git/blobdiff - app/Models/Round.php
allow admins to lock/unlock rounds
[alttp.git] / app / Models / Round.php
index 3b84c554e3e6320b2290c8b751930bef0d7ea69e..71a4273dc9435b21c609341082fe3c52d99efd33 100644 (file)
@@ -17,7 +17,13 @@ class Round extends Model
                return $this->belongsTo(Tournament::class);
        }
 
+       protected $casts = [
+               'code' => 'array',
+               'locked' => 'boolean',
+       ];
+
        protected $fillable = [
+               'number',
                'tournament_id',
        ];