starttime popup
This commit is contained in:
1 parent
012747f149
commit
5a44fc18b3
8 files changed
+91
-32
No files matched your search
@@ -68,9 +68,9 @@ class EventResource extends Resource
|
||||
->where('sport_id', auth()->user()->sport_id);
|
||||
|
||||
if (config('env.app_env') == 'production') {
|
||||
$query->whereDate('starttime', '>=', Carbon::now()->subHour());
|
||||
$query->where('starttime', '>=', Carbon::now()->subHour());
|
||||
} else {
|
||||
$query->whereDate('starttime', '>=', Carbon::now());
|
||||
$query->where('starttime', '>=', Carbon::now());
|
||||
}
|
||||
|
||||
if (auth()->user()->all_only_none > 0) {
|
||||
|
||||
Reference in new issue
Block a user