all where to whereDate for starttime
This commit is contained in:
1 parent
dcaf503b71
commit
831c8507cf
16 files changed
+66
-71
No files matched your search
@@ -19,7 +19,7 @@ class LoadProvider
|
||||
if (is_array($search_values) and \count($search_values)) {
|
||||
|
||||
return Mapper::query()
|
||||
->where('starttime', '>', Carbon::now())
|
||||
->whereDate('starttime', '>', Carbon::now())
|
||||
->where('sport_id', $user->sport_id)
|
||||
->where('provider_id', $user->provider_id)
|
||||
->where(function ($query) use ($search_values) {
|
||||
@@ -31,7 +31,7 @@ class LoadProvider
|
||||
|
||||
} else {
|
||||
return Mapper::query()
|
||||
->where('starttime', '>', Carbon::now())
|
||||
->whereDate('starttime', '>', Carbon::now())
|
||||
->where('sport_id', $user->sport_id)
|
||||
->where('provider_id', $user->provider_id);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user