Arcanedev\LogViewer\Contracts\LogViewer::download PHP Метод

download() публичный Метод

Download a log file.
public download ( string $date, string | null $filename = null, array $headers = [] ) : BinaryFileResponse
$date string
$filename string | null
$headers array
Результат Symfony\Component\HttpFoundation\BinaryFileResponse
    public function download($date, $filename = null, $headers = []);

Usage Example

Пример #1
0
 /**
  * Download the log.
  *
  * @param  string  $date
  *
  * @return \Symfony\Component\HttpFoundation\BinaryFileResponse
  */
 public function download($date)
 {
     $this->authorize(LogViewerPolicy::PERMISSION_DOWNLOAD);
     return $this->logViewer->download($date);
 }