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

@@ -205,7 +205,7 @@ class EventsTable
->searchable()
->preload()
->options(function () {
$res = Event::where('has_markets', 1)->where('sport_id', auth()->user()->sport_id)->whereDate('starttime', '>', Carbon::now())->groupBy('country_id')->pluck('country_id')->toArray();
$res = Event::where('has_markets', 1)->where('sport_id', auth()->user()->sport_id)->whereDate('starttime', '>=', Carbon::now())->groupBy('country_id')->pluck('country_id')->toArray();
return Country::query()->whereIn('id', $res)->orderBy('name')->pluck('name', 'id');
})