]> git.localhorst.tv Git - alttp.git/blobdiff - app/Models/User.php
show tournament participation in profile
[alttp.git] / app / Models / User.php
index 7f03b4acdf6a24ea4dc2bcec5145cb66a2b31ea9..535af2e07e828232ba2e9e2843ad507d1222d481 100644 (file)
@@ -21,6 +21,10 @@ class User extends Authenticatable
                return false;
        }
 
+       public function participation() {
+               return $this->hasMany(Participant::class);
+       }
+
        /**
         * The attributes that are mass assignable.
         *