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