select whereDate to where

This commit is contained in:
salam committed 2026-02-25 17:14:56 +01:00
1 parent 79271f22e1
commit d58d543583
15 files changed
+61 -61

No files matched your search

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