public function saveFromView($view, $path)
    {
        $this->generateFilePaths();
        $this->generatePdf($view);

        rename($this->pdfPath, $path);
    }
public function saveFromView($view, $path)
    {
        $this->generateFilePaths();
        $this->generatePdf($view);

        rename($this->pdfPath, $path);
    }
public function saveFromView ( $ view , $ path ) { $ this -> generateFilePaths ( ) ; $ this -> generatePdf ( $ view ) ; rename ( $ this -> pdfPath , $ path ) ; }
Save a PDF file to the disk
@param string|object $view
@param string $path
Save a PDF file to the disk