Laravel\Cashier\Billable::downloadInvoice PHP Method

downloadInvoice() public method

Create an invoice download Response.
public downloadInvoice ( string $id, array $data, string $storagePath = null ) : Response
$id string
$data array
$storagePath string
return Symfony\Component\HttpFoundation\Response
    public function downloadInvoice($id, array $data, $storagePath = null)
    {
        return $this->findInvoiceOrFail($id)->download($data, $storagePath);
    }