belongsTo(Sport::class); } public function country() { return $this->belongsTo(Country::class, 'country_id', 'tx_id')->where('disabled', 0)->where('is_country', 1); } public function group() { return $this->hasOne(Group::class, 'id', 'group_id'); } public function competition_group() { return $this->hasOne(CompetitionGroup::class, 'id', 'competition_group_id'); } public function home() { return $this->hasOne(Element::class, 'id', 'home_id'); } public function away() { return $this->hasOne(Element::class, 'id', 'away_id'); } }