add color to history

This commit is contained in:
salam committed 2026-03-11 12:15:23 +01:00
1 parent c0b8b7439c
commit 7dea3ce335
4 files changed
+55 -14

No files matched your search

+10
View File
@@ -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);