X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=app%2FModels%2FRound.php;h=71a4273dc9435b21c609341082fe3c52d99efd33;hb=2b3d5b3d98705cda41a7218d7133234b227e87b6;hp=3b84c554e3e6320b2290c8b751930bef0d7ea69e;hpb=edd0e97bfdc544114f30bf4c13a929631c44a555;p=alttp.git diff --git a/app/Models/Round.php b/app/Models/Round.php index 3b84c55..71a4273 100644 --- a/app/Models/Round.php +++ b/app/Models/Round.php @@ -17,7 +17,13 @@ class Round extends Model return $this->belongsTo(Tournament::class); } + protected $casts = [ + 'code' => 'array', + 'locked' => 'boolean', + ]; + protected $fillable = [ + 'number', 'tournament_id', ];