This commit is contained in:
salam committed 2026-01-26 01:52:47 +01:00
1 parent 45cd621cf7
commit d317c733b9
13 files changed
+142 -58

No files matched your search

@@ -53,12 +53,12 @@ class EventResource extends Resource
public static function getEloquentQuery(): Builder
{
$query = parent::getEloquentQuery()
->where('starttime', '>', Carbon::now())
->with('competition_group')
->with('country')
->with('home')
->with('away')
->with('event_user_star');
->with('event_user_star')
->where('starttime', '>=', now());
if (auth()->user()->stars) {
$query->whereHas('event_user_star');