public function save($name = 'invoice.pdf')
    {
        $invoice = $this->generate();

        Storage::put($name, $invoice->pdf->output());
    }
public function save($name = 'invoice.pdf')
    {
        $invoice = $this->generate();

        Storage::put($name, $invoice->pdf->output());
    }
public function save ( $ name = 'invoice.pdf' ) { $ invoice = $ this -> generate ( ) ; Storage :: put ( $ name , $ invoice -> pdf -> output ( ) ) ; }
Save the generated PDF.

@method save

@param string $name
Save the generated PDF .