Skip to content

Commit c23b86f

Browse files
Marius-Kmc0de
authored andcommitted
Fixes CSS loading issue
1 parent 4e06eeb commit c23b86f

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
@@ -250,7 +250,7 @@ public function render()
250250
$view = View::make($template, ['invoice' => $this]);
251251
$html = mb_convert_encoding($view, 'HTML-ENTITIES', 'UTF-8');
252252

253-
$this->pdf = PDF::setOptions(['enable_php' => true])->loadHtml($html);
253+
$this->pdf = PDF::setOptions(['enable_php' => true, 'enable_remote' => true])->loadHtml($html);
254254
$this->output = $this->pdf->output();
255255
}
256256

0 commit comments

Comments
 (0)