fix carbon

This commit is contained in:
salam committed 2026-02-24 11:51:00 +01:00
1 parent 3af30b34b5
commit d0915a611e
12 files changed
+282 -44

No files matched your search

+2 -1
View File
@@ -4,6 +4,7 @@ namespace App\Actions;
use App\Models\Event;
use App\Models\OddsTable;
use Carbon\Carbon;
class AlarmStatistic
{
@@ -17,7 +18,7 @@ class AlarmStatistic
$events = Event::with('event_bookmaker')
->where('sport_id', auth()->user()->sport_id)
->whereDate('starttime', '>=', now())
->whereDate('starttime', '>=', Carbon::now())
->whereHas('event_bookmaker', function ($query) {
$query->where('bookmaker_id', auth()->user()->bookmaker_id);
})