/** * @return null */ private function getMinTime() { // Get the last Duo log based on Unix Timestamp $lastLog = Log::orderBy('timestamp', 'desc')->first(); // If there are no logs, there is no $mintime to set // Otherwise set it to the latest timestamp in our database if (is_null($lastLog['timestamp'])) { $mintime = NULL; } else { $mintime = $lastLog['timestamp']->timestamp + 1; } \Log::debug('Calculated Mintime: ', ['mintime' => $mintime, 'lastLog' => $lastLog]); return $mintime; }