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