X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=app%2FModels%2FTournament.php;fp=app%2FModels%2FTournament.php;h=eea88096bdfc71da9a39115c2ed997a98a0afdb2;hb=3a774bb649734fc3a2135ec1b52cef9a049880ee;hp=56ffe78f79c5dc1dc9b488f962b6c01f69bc6434;hpb=8d97d023740e438361e659c6e133418e33343178;p=alttp.git diff --git a/app/Models/Tournament.php b/app/Models/Tournament.php index 56ffe78..eea8809 100644 --- a/app/Models/Tournament.php +++ b/app/Models/Tournament.php @@ -61,6 +61,10 @@ class Tournament extends Model } + public function applications() { + return $this->hasMany(Application::class); + } + public function participants() { return $this->hasMany(Participant::class); } @@ -75,6 +79,7 @@ class Tournament extends Model protected $casts = [ + 'accept_applications' => 'boolean', 'locked' => 'boolean', 'no_record' => 'boolean', ];