<?php

/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

//$pdf = App::make('dompdf.wrapper');
//$pdf->loadHTML('<h1>Test</h1>');
//return $pdf->stream();

use Barryvdh\DomPDF\PDF;

$pdf = PDF::loadView('pdf.invoice', $data);
return $pdf->download('invoice.pdf');

