multi betts wip
This commit is contained in:
1 parent
1aa044fff1
commit
b39196c9eb
62 files changed
+1237
-208
No files matched your search
+26
-11
@@ -68,21 +68,26 @@ class Event extends Model
|
||||
return $this->belongsTo(Element::class);
|
||||
}
|
||||
|
||||
public function odds_2way()
|
||||
public function odds_2ways()
|
||||
{
|
||||
return $this->hasMany(Odds2way::class);
|
||||
}
|
||||
|
||||
public function odds_2way_s1()
|
||||
public function odds_2ways_s1()
|
||||
{
|
||||
return $this->hasMany(Odds2wayS1::class);
|
||||
}
|
||||
|
||||
public function odds_3way()
|
||||
public function odds_3ways()
|
||||
{
|
||||
return $this->hasMany(Odds3way::class);
|
||||
}
|
||||
|
||||
public function odds_3ways_ht()
|
||||
{
|
||||
return $this->hasMany(Odds3wayHt::class);
|
||||
}
|
||||
|
||||
public function odds_dc()
|
||||
{
|
||||
return $this->hasMany(OddsDc::class);
|
||||
@@ -98,24 +103,34 @@ class Event extends Model
|
||||
return $this->hasMany(OddsGgng::class);
|
||||
}
|
||||
|
||||
public function odds_point()
|
||||
public function odds_points()
|
||||
{
|
||||
return $this->hasMany(OddsPoint::class);
|
||||
return $this->hasMany(OddsPoint::class)->where('active_spread', 1);
|
||||
}
|
||||
|
||||
public function odds_point_q1()
|
||||
public function odds_points_q1()
|
||||
{
|
||||
return $this->hasMany(OddsPointQ1::class);
|
||||
return $this->hasMany(OddsPointQ1::class)->where('active_spread', 1);
|
||||
}
|
||||
|
||||
public function odds_total()
|
||||
public function odds_points_ht()
|
||||
{
|
||||
return $this->hasMany(OddsTotal::class);
|
||||
return $this->hasMany(OddsPointHt::class)->where('active_spread', 1);
|
||||
}
|
||||
|
||||
public function odds_total_q1()
|
||||
public function odds_totals()
|
||||
{
|
||||
return $this->hasMany(OddsTotalQ1::class);
|
||||
return $this->hasMany(OddsTotal::class)->where('active_spread', 1);
|
||||
}
|
||||
|
||||
public function odds_totals_q1()
|
||||
{
|
||||
return $this->hasMany(OddsTotalQ1::class)->where('active_spread', 1);
|
||||
}
|
||||
|
||||
public function odds_totals_ht()
|
||||
{
|
||||
return $this->hasMany(OddsTotalHt::class)->where('active_spread', 1);
|
||||
}
|
||||
|
||||
public function odds_tq()
|
||||
|
||||
Reference in new issue
Block a user