download() public method

Make the PDF downloadable by the user
public download ( string $filename = 'document.pdf' ) : Illuminate\Http\Response
$filename string
return Illuminate\Http\Response
Beispiel #1
0
 /**
  * Make the PDF downloadable by the user
  *
  * @param string $filename
  * @return \Barryvdh\Snappy\Response 
  * @static 
  */
 public static function download($filename = 'document.pdf')
 {
     return \Barryvdh\Snappy\PdfWrapper::download($filename);
 }