cleanup comparatore

This commit is contained in:
salam committed 2025-12-12 07:35:03 +01:00
1 parent 2052ccdd77
commit adaec7b3dc
21 files changed
+98 -205

No files matched your search

@@ -62,7 +62,9 @@ class EventResource extends Resource
public static function getEloquentQuery(): Builder
{
return parent::getEloquentQuery()->withoutGlobalScopes()->with('odds_3way');
// return parent::getEloquentQuery()->withoutGlobalScopes()->with('odds_3way')->where('starttime', '>', Carbon::now());
return parent::getEloquentQuery()
->where('starttime', '>', Carbon::now())
->where('sport_id', auth()->user()->sport_id)
->withoutGlobalScopes()->with('odds_3way');
}
}