Skip to content

Commit c8743a5

Browse files
authored
update laravel-dompdf facade
The facade that the laravel-dompdf package uses was changed, apply the change here. barryvdh/laravel-dompdf#899
1 parent 0af6259 commit c8743a5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Invoice.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace LaravelDaily\Invoices;
44

5-
use Barryvdh\DomPDF\Facade as PDF;
5+
use Barryvdh\DomPDF\Facade\Pdf;
66
use Carbon\Carbon;
77
use Exception;
88
use Illuminate\Http\Response;
@@ -131,7 +131,7 @@ class Invoice
131131
public $table_columns;
132132

133133
/**
134-
* @var PDF
134+
* @var Pdf
135135
*/
136136
public $pdf;
137137

@@ -257,7 +257,7 @@ public function render()
257257
$view = View::make($template, ['invoice' => $this]);
258258
$html = mb_convert_encoding($view, 'HTML-ENTITIES', 'UTF-8');
259259

260-
$this->pdf = PDF::setOptions(['enable_php' => true])->loadHtml($html);
260+
$this->pdf = Pdf::setOptions(['enable_php' => true])->loadHtml($html);
261261
$this->output = $this->pdf->output();
262262

263263
return $this;

0 commit comments

Comments
 (0)