]> git.localhorst.tv Git - alttp.git/blobdiff - app/Models/Round.php
round rolled by
[alttp.git] / app / Models / Round.php
index 2c1a43963897563cfe2686245418dc5f9c149e38..3c191bc17efb200d65b1263371dec4599d93b508 100644 (file)
@@ -57,6 +57,10 @@ class Round extends Model
                return $this->hasMany(Result::class);
        }
 
+       public function rolled_by_user() {
+               return $this->belongsTo(User::class, 'rolled_by');
+       }
+
        public function tournament() {
                return $this->belongsTo(Tournament::class);
        }
@@ -74,4 +78,8 @@ class Round extends Model
                'tournament_id',
        ];
 
+       protected $with = [
+               'rolled_by_user',
+       ];
+
 }