cleanup comparatore
This commit is contained in:
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');
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user