]> git.localhorst.tv Git - alttp.git/blobdiff - app/Models/Tournament.php
tournament application
[alttp.git] / app / Models / Tournament.php
index 56ffe78f79c5dc1dc9b488f962b6c01f69bc6434..eea88096bdfc71da9a39115c2ed997a98a0afdb2 100644 (file)
@@ -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',
        ];