add color to history
This commit is contained in:
1 parent
c0b8b7439c
commit
7dea3ce335
4 files changed
+55
-14
No files matched your search
@@ -63,6 +63,16 @@ class Event extends Model
|
||||
return $this->belongsTo(Element::class);
|
||||
}
|
||||
|
||||
public function home_betsapi()
|
||||
{
|
||||
return $this->belongsTo(ElementProvider::class, 'home_id', 'element_id')->where('provider_id', 2);
|
||||
}
|
||||
|
||||
public function away_betsapi()
|
||||
{
|
||||
return $this->belongsTo(ElementProvider::class, 'away_id', 'element_id')->where('provider_id', 2);
|
||||
}
|
||||
|
||||
public function odds_2ways()
|
||||
{
|
||||
return $this->hasMany(Odds2way::class);
|
||||
|
||||
Reference in new issue
Block a user