Skip to content

Commit 3946d81

Browse files
committed
Add support for laravel 8
1 parent 1759fc5 commit 3946d81

File tree

5 files changed

+9
-5
lines changed

5 files changed

+9
-5
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
vendor
1+
vendor
2+
.phpunit*

.phpunit.result.cache

Lines changed: 0 additions & 1 deletion
This file was deleted.

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9+
## [0.3.1] - 2020-09-09
10+
### Added
11+
- Added support for Laravel 8
12+
913
## [0.3.0] - 2020-07-30
1014
### Added
1115
- Added support for the [GET] /api/browse endpoint from the printer-api

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
},
1717
"require-dev": {
1818
"php" : ">=7.4",
19-
"illuminate/support": "5.2.*|5.3.*|5.4.*|5.5.*|5.6.*|5.7.*|5.8.*|6.*|7.*",
19+
"illuminate/support": "5.2.*|5.3.*|5.4.*|5.5.*|5.6.*|5.7.*|5.8.*|6.*|7.*|8.*",
2020
"laravel/framework": "5.2.*|5.3.*|5.4.*|5.5.*|5.6.*|5.7.*|5.8.*|6.*|7.*|8.*",
2121
"phpunit/phpunit": "^9.3@dev",
2222
"orchestra/testbench": "3.8.*|4.*|5.*"

src/Classes/PdfPrinter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@ public function create(String $url, PdfPrinterOption $options = null, Callable $
7272

7373
$response = $this->client->request("POST", $this->settings->url("api/browse"), [
7474
'headers' => $headers,
75-
'json' => [
75+
'json' => array_merge([
7676
'url' => $url
77-
]
77+
], $options !== null ? $options->toArray() : []),
7878
]);
7979

8080
$this->result = new PdfPrinterResult($response);

0 commit comments

Comments
 (0)