select whereDate to where
This commit is contained in:
1 parent
79271f22e1
commit
d58d543583
15 files changed
+61
-61
No files matched your search
@@ -18,7 +18,7 @@ class AlarmStatistic
|
||||
|
||||
$events = Event::with('event_bookmaker')
|
||||
->where('sport_id', auth()->user()->sport_id)
|
||||
->whereDate('starttime', '>=', Carbon::now())
|
||||
->where('starttime', '>=', Carbon::now())
|
||||
->whereHas('event_bookmaker', function ($query) {
|
||||
$query->where('bookmaker_id', auth()->user()->bookmaker_id);
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user