select whereDate to where
This commit is contained in:
1 parent
79271f22e1
commit
d58d543583
15 files changed
+61
-61
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)->whereDate('starttime', '>', Carbon::now())->get()->toArray();
|
||||
$mappers = Mapper::where('provider_id', 2)->where('sport_id', 5)->where('starttime', '>=', Carbon::now())->get()->toArray();
|
||||
|
||||
foreach ($mappers as $mapper) {
|
||||
|
||||
@@ -42,8 +42,8 @@ class LogifutureColombiaAll
|
||||
$from = Carbon::createFromDate($mapper['starttime'])->subDay();
|
||||
$to = Carbon::createFromDate($mapper['starttime'])->addDay();
|
||||
|
||||
$event = Event::whereDate('starttime', '>', $from)
|
||||
->whereDate('starttime', '<', $to)
|
||||
$event = Event::where('starttime', '>', $from)
|
||||
->where('starttime', '<', $to)
|
||||
->where('home_id', $mapper['txodds_home_id'])
|
||||
->where('away_id', $mapper['txodds_away_id'])
|
||||
->where('competition_group_id', $mapper['txodds_group_id'])
|
||||
|
||||
Reference in new issue
Block a user