Skip to content

Commit df39278

Browse files
committed
Fixes CSS loading issue
1 parent 0d8896e commit df39278

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

resources/views/templates/default.blade.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<title>{{ $invoice->name }}</title>
55
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
66

7-
<link rel="stylesheet" href="{{ public_path('vendor/invoices/bootstrap.min.css') }}">
7+
<link rel="stylesheet" href="{{ asset('vendor/invoices/bootstrap.min.css') }}">
88

99
<style type="text/css" media="screen">
1010
* {
@@ -28,6 +28,9 @@
2828
font-size: 12px;
2929
font-weight: 700;
3030
}
31+
.border-0 {
32+
border: none !important;
33+
}
3134
</style>
3235
</head>
3336

src/Invoice.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ public function render()
242242
$view = View::make($template, ['invoice' => $this]);
243243
$html = mb_convert_encoding($view, 'HTML-ENTITIES', 'UTF-8');
244244

245-
$this->pdf = PDF::setOptions(['enable_php' => true])->loadHtml($html);
245+
$this->pdf = PDF::setOptions(['enable_php' => true, 'enable_remote' => true])->loadHtml($html);
246246
$this->output = $this->pdf->output();
247247
}
248248

0 commit comments

Comments
 (0)