Answer the question
In order to leave comments, you need to log in
Time check not working?
$forecasts = ForecastPage::get();
$forecasts->each(function ($item) {
$item->start_time = $item->bet()->value('start_date');
});
dump($forecasts);
$forecastToday = $forecasts->where('start_time', date('Y-m-d'));
dd($forecastToday);
Answer the question
In order to leave comments, you need to log in
Check if start_time is in the range from the first second of today to the last.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question