wip
This commit is contained in:
1 parent
12d29d6a6b
commit
ce4802f889
1 file changed
+5
-5
@@ -125,11 +125,11 @@ class LoadEventsQuery
|
||||
})->when($end, function ($query) use ($end) {
|
||||
return $query->whereDate('starttime', '<=', $end);
|
||||
})
|
||||
// ->when($season, function ($query) use ($season, $season_or_date) {
|
||||
// if ($season_or_date == 'season') {
|
||||
// return $query->whereIn('season', $season);
|
||||
// }
|
||||
// })
|
||||
->when($season, function ($query) use ($season, $season_or_date) {
|
||||
if ($season_or_date == 'season') {
|
||||
return $query->whereIn('season', $season);
|
||||
}
|
||||
})
|
||||
->orderBy('starttime', 'ASC')
|
||||
->get();
|
||||
|
||||
|
||||
Reference in new issue
Block a user