protected function findNewestLocalLogfile($path)
    {
        $files = glob($path.'/*.log');

        $files = array_combine($files, array_map('filemtime', $files));

        arsort($files);

        $newestLogFile = key($files);

        return $newestLogFile;
    }
protected function findNewestLocalLogfile($path)
    {
        $files = glob($path.'/*.log');

        $files = array_combine($files, array_map('filemtime', $files));

        arsort($files);

        $newestLogFile = key($files);

        return $newestLogFile;
    }
protected function findNewestLocalLogfile ( $ path ) { $ files = glob ( $ path . '/*.log' ) ; $ files = array_combine ( $ files , array_map ( 'filemtime' , $ files ) ) ; arsort ( $ files ) ; $ newestLogFile = key ( $ files ) ; return $ newestLogFile ; }
Get the path to the latest local Laravel log file.

@param $path

@return mixed
Get the path to the latest local Laravel log file .