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
@@ -25,7 +25,7 @@ class LogifutureColombiaAll
|
||||
Notice::note(Nuh::$options['name'].' '.Nuh::$options['sport'], 'g');
|
||||
}
|
||||
|
||||
$mappers = Mapper::where('provider_id', 2)->where('sport_id', 5)->where('starttime', '>', Carbon::now())->get()->toArray();
|
||||
$mappers = Mapper::where('provider_id', 2)->where('sport_id', 5)->whereDate('starttime', '>', Carbon::now())->get()->toArray();
|
||||
|
||||
foreach ($mappers as $mapper) {
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ class LogifutureNigeriaAll
|
||||
Notice::note(Nuh::$options['name'].' '.Nuh::$options['sport'], 'g');
|
||||
}
|
||||
|
||||
$mappers = Mapper::where('provider_id', 2)->where('sport_id', 5)->where('starttime', '>', Carbon::now())->get()->toArray();
|
||||
$mappers = Mapper::where('provider_id', 2)->where('sport_id', 5)->whereDate('starttime', '>', Carbon::now())->get()->toArray();
|
||||
|
||||
foreach ($mappers as $mapper) {
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ class MaglooKeniaAll
|
||||
|
||||
foreach ($sports as $sport_id) {
|
||||
|
||||
$mappers = Mapper::where('provider_id', $provider_id)->where('sport_id', $sport_id)->where('starttime', '>', Carbon::now())->get()->toArray();
|
||||
$mappers = Mapper::where('provider_id', $provider_id)->where('sport_id', $sport_id)->whereDate('starttime', '>', Carbon::now())->get()->toArray();
|
||||
|
||||
foreach ($mappers as $mapper) {
|
||||
|
||||
|
||||
@@ -27,9 +27,8 @@ class MaglooNigeriaAll
|
||||
}
|
||||
|
||||
$sports = Sport::map('magl');
|
||||
dd($sports);
|
||||
|
||||
$mappers = Mapper::where('provider_id', 2)->where('sport_id', 5)->where('starttime', '>', Carbon::now())->get()->toArray();
|
||||
$mappers = Mapper::where('provider_id', 2)->where('sport_id', 5)->whereDate('starttime', '>', Carbon::now())->get()->toArray();
|
||||
|
||||
foreach ($mappers as $mapper) {
|
||||
|
||||
|
||||
Reference in new issue
Block a user