public function stream($filename = 'document.pdf') { $output = $this->output(); return new Response($output, 200, array('Content-Type' => 'application/pdf', 'Content-Disposition' => 'inline; filename="' . $filename . '"')); }
/** * Return a response with the PDF to show in the browser * * @param string $filename * @return \Illuminate\Http\Response * @static */ public static function stream($filename = 'document.pdf') { return \Barryvdh\DomPDF\PDF::stream($filename); }