public function createFromView($view, $filename, $inline = false)
    {
        $this->generateFilePaths();
        $this->generatePdf($view);

        $contentDisposition = $inline ? 'inline' : 'attachment';
        return (new BinaryFileResponse($this->pdfPath))
            ->setContentDisposition($contentDisposition, $filename)
            ->deleteFileAfterSend(true);
    }
public function createFromView($view, $filename, $inline = false)
    {
        $this->generateFilePaths();
        $this->generatePdf($view);

        $contentDisposition = $inline ? 'inline' : 'attachment';
        return (new BinaryFileResponse($this->pdfPath))
            ->setContentDisposition($contentDisposition, $filename)
            ->deleteFileAfterSend(true);
    }
public function createFromView ( $ view , $ filename , $ inline = false ) { $ this -> generateFilePaths ( ) ; $ this -> generatePdf ( $ view ) ; $ contentDisposition = $ inline ? 'inline' : 'attachment' ; return ( new BinaryFileResponse ( $ this -> pdfPath ) ) -> setContentDisposition ( $ contentDisposition , $ filename ) -> deleteFileAfterSend ( true ) ; }
Create a PDF from a view or string
@param string|object $view
@param string $filename
@param bool $inline
@return BinaryFileResponse
Create a PDF from a view or string