comparatore bookmaker odds wip
This commit is contained in:
1 parent
adaec7b3dc
commit
218c1e6e1c
59 files changed
+470
-129
No files matched your search
+10
-1
@@ -52,6 +52,15 @@ class Event extends Model
|
||||
|
||||
public function odds_3way()
|
||||
{
|
||||
return $this->hasMany(Odds3way::class);
|
||||
$_bookmaker = Multiline::where('sport_id', auth()->user()->sport_id)
|
||||
->where('client_id', auth()->user()->client_id)
|
||||
->where('bettype_id', 1)
|
||||
->where('matchpart_id', 1)
|
||||
->pluck('bookmaker_id');
|
||||
|
||||
return $this->hasMany(Odds3way::class, 'event_id', 'id')
|
||||
->join('multilines', 'multilines.bookmaker_id', 'odds_3ways.bookmaker_id')
|
||||
->orderBy('multilines.sort');
|
||||
// return $this->hasMany(Odds3way::class, 'event_id', 'id')->whereIn('bookmaker_id', $_bookmaker);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user