public function getLogFiles($count = 20)
    {
        $files = glob(storage_path('logs/*'));
        $files = array_combine($files, array_map("filemtime", $files));
        arsort($files);

        $files = array_map('basename', array_keys($files));

        return array_slice($files, 0, $count);
    }
public function getLogFiles($count = 20)
    {
        $files = glob(storage_path('logs/*'));
        $files = array_combine($files, array_map("filemtime", $files));
        arsort($files);

        $files = array_map('basename', array_keys($files));

        return array_slice($files, 0, $count);
    }
public function getLogFiles ( $ count = 20 ) { $ files = glob ( storage_path ( 'logs/*' ) ) ; $ files = array_combine ( $ files , array_map ( "filemtime" , $ files ) ) ; arsort ( $ files ) ; $ files = array_map ( 'basename' , array_keys ( $ files ) ) ; return array_slice ( $ files , 0 , $ count ) ; }
Get log file list in storage.

@param int $count

@return array
Get log file list in storage .