wip
This commit is contained in:
1 parent
82c1f6b898
commit
0eb8a5d67e
1 file changed
+2
-2
@@ -21,7 +21,7 @@ class LoadProvider
|
|||||||
if (is_array($search_values) and \count($search_values)) {
|
if (is_array($search_values) and \count($search_values)) {
|
||||||
|
|
||||||
return Mapper::query()
|
return Mapper::query()
|
||||||
->whereDate('starttime', '>', Carbon::now())
|
->whereDate('starttime', '>', Carbon::now()->subHours(5))
|
||||||
->where('sport_id', auth()->user()->sport_id)
|
->where('sport_id', auth()->user()->sport_id)
|
||||||
->where('provider_id', auth()->user()->provider_id)
|
->where('provider_id', auth()->user()->provider_id)
|
||||||
->where(function ($query) use ($search_values) {
|
->where(function ($query) use ($search_values) {
|
||||||
@@ -33,7 +33,7 @@ class LoadProvider
|
|||||||
|
|
||||||
} else {
|
} else {
|
||||||
return Mapper::query()
|
return Mapper::query()
|
||||||
->whereDate('starttime', '>', Carbon::now())
|
->whereDate('starttime', '>', Carbon::now()->subHours(5))
|
||||||
->where('sport_id', auth()->user()->sport_id)
|
->where('sport_id', auth()->user()->sport_id)
|
||||||
->where('provider_id', auth()->user()->provider_id);
|
->where('provider_id', auth()->user()->provider_id);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user