diff --git a/src/Models/Result.php b/src/Models/Result.php index bb7aeb7..60f97e4 100644 --- a/src/Models/Result.php +++ b/src/Models/Result.php @@ -19,6 +19,11 @@ public function ranking() { return $this->belongsTo(app('ranking')); } + + public function parent() + { + return $this->belongsTo(app('result'), 'parent_id'); + } public function resultable() {