multilines wip
This commit is contained in:
1 parent
218c1e6e1c
commit
825a8d430c
19 files changed
+145
-78
No files matched your search
+1
-10
@@ -52,15 +52,6 @@ class Event extends Model
|
||||
|
||||
public function odds_3way()
|
||||
{
|
||||
$_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);
|
||||
return $this->hasMany(Odds3way::class, 'event_id', 'id')->with('bookmaker');
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user