public function download($date, $filename = null, $headers = [])
    {
        if (is_null($filename)) {
            $filename = "laravel-{$date}.log";
        }

        $path = $this->filesystem->path($date);

        return response()->download($path, $filename, $headers);
    }
public function download($date, $filename = null, $headers = [])
    {
        if (is_null($filename)) {
            $filename = "laravel-{$date}.log";
        }

        $path = $this->filesystem->path($date);

        return response()->download($path, $filename, $headers);
    }
public function download ( $ date , $ filename = null , $ headers = [ ] ) { if ( is_null ( $ filename ) ) { $ filename = "laravel-{$date}.log" ; } $ path = $ this -> filesystem -> path ( $ date ) ; return response ( ) -> download ( $ path , $ filename , $ headers ) ; }
Download a log file.

@param  string       $date
@param  string|null  $filename
@param  array        $headers

@return \Symfony\Component\HttpFoundation\BinaryFileResponse
Download a log file .