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->belongsTo(Group::class); } public function competition_group() { return $this->belongsTo(CompetitionGroup::class); } public function home() { return $this->belongsTo(Element::class); } public function away() { return $this->belongsTo(Element::class); } }