wip
This commit is contained in:
1 parent
419148cd18
commit
7abcc5c56c
75 files changed
+32250
-127794
No files matched your search
+14
-12
@@ -10,41 +10,43 @@ class Event extends Model
|
||||
'starttime',
|
||||
'sport_id',
|
||||
'country_id',
|
||||
'liga_id',
|
||||
'group_id',
|
||||
'competition_group_id',
|
||||
'home_id',
|
||||
'away_id',
|
||||
'provider_id',
|
||||
'txodds_id',
|
||||
'provider_id',
|
||||
'betaid_id',
|
||||
'betradar_id',
|
||||
'magnig_id',
|
||||
'magken_id',
|
||||
'lognig_id',
|
||||
'logcol_id',
|
||||
];
|
||||
|
||||
public function sport()
|
||||
{
|
||||
return $this->belongsTo(Sport::class, 'sport_id', 'id');
|
||||
return $this->belongsTo(Sport::class);
|
||||
}
|
||||
|
||||
public function country()
|
||||
{
|
||||
return $this->belongsTo(Country::class);
|
||||
return $this->belongsTo(Country::class, 'country_id', 'txodds_id');
|
||||
}
|
||||
|
||||
public function liga()
|
||||
public function group()
|
||||
{
|
||||
return $this->belongsTo(Liga::class);
|
||||
return $this->hasOne(Group::class, 'txodds_id', 'group_id');
|
||||
}
|
||||
|
||||
public function competition_group()
|
||||
{
|
||||
return $this->hasOne(CompetitionGroup::class, 'txodds_id', 'competition_group_id');
|
||||
}
|
||||
|
||||
public function home()
|
||||
{
|
||||
return $this->belongsTo(Element::class);
|
||||
return $this->hasOne(Element::class, 'txodds_id', 'home_id');
|
||||
}
|
||||
|
||||
public function away()
|
||||
{
|
||||
return $this->belongsTo(Element::class);
|
||||
return $this->hasOne(Element::class, 'txodds_id', 'away_id');
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user