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