public function download(RequestListener $listener, $date)
    {
        $filename = app('logger.filesystem')->getLogFilename($date);
        $path     = dirname(config('request-logger.logger.file')) . DIRECTORY_SEPARATOR . $filename;
        if (!file_exists($path)) {
            return $listener->downloadFailed();
        }
        return response()->download($path);
    }
public function download(RequestListener $listener, $date)
    {
        $filename = app('logger.filesystem')->getLogFilename($date);
        $path     = dirname(config('request-logger.logger.file')) . DIRECTORY_SEPARATOR . $filename;
        if (!file_exists($path)) {
            return $listener->downloadFailed();
        }
        return response()->download($path);
    }
public function download ( RequestListener $ listener , $ date ) { $ filename = app ( 'logger.filesystem' ) -> getLogFilename ( $ date ) ; $ path = dirname ( config ( 'request-logger.logger.file' ) ) . DIRECTORY_SEPARATOR . $ filename ; if ( ! file_exists ( $ path ) ) { return $ listener -> downloadFailed ( ) ; } return response ( ) -> download ( $ path ) ; }
Download request log

@param String $date
Download request log