Collective\Remote\Console\TailCommand::findNewestLocalLogfile PHP Метод

findNewestLocalLogfile() защищенный Метод

Get the path to the latest local Laravel log file.
protected findNewestLocalLogfile ( $path ) : mixed
$path
Результат mixed
    protected function findNewestLocalLogfile($path)
    {
        $files = glob($path . '/*.log');
        $files = array_combine($files, array_map('filemtime', $files));
        arsort($files);
        $newestLogFile = key($files);
        return $newestLogFile;
    }