Skip to content
This repository was archived by the owner on Nov 20, 2025. It is now read-only.

Commit f8afc1c

Browse files
committed
Finalised support for Saloon v3
1 parent 1d4d5b3 commit f8afc1c

File tree

8 files changed

+14
-11
lines changed

8 files changed

+14
-11
lines changed

.github/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
33
## Saloon HTTP Sender
44

5-
This is the Laravel HTTP client sender for Saloon, to install it run the following command
5+
This is the Laravel HTTP client sender for Saloon v3, to install it run the following command
66

77
```php
8-
composer require saloonphp/laravel-http-sender
8+
composer require saloonphp/laravel-http-sender "^2.0"
99
```
1010
> Requires Laravel 9+ and PHP 8.1+
1111
1212
### Documentation
1313

14-
[Click here to read the documentation](https://docs.saloon.dev/v/2)
14+
[Click here to read the documentation](https://docs.saloon.dev/plugins/laravel-integration)

.github/workflows/php-cs-fixer.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ name: Code Style
33
on:
44
push:
55
branches:
6-
- 'main'
6+
- 'v1'
7+
- 'v2'
78
pull_request:
89
branches:
910
- '*'

.github/workflows/phpstan.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ name: PHPStan
33
on:
44
push:
55
branches:
6-
- 'main'
6+
- 'v1'
7+
- 'v2'
78
pull_request:
89
branches:
910
- '*'

.github/workflows/tests.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ name: tests
33
on:
44
push:
55
branches:
6-
- 'main'
6+
- 'v1'
7+
- 'v2'
78
pull_request:
89
branches:
910
- '*'

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
"homepage": "https://github.com/sammyjo20",
1414
"require": {
1515
"php": "^8.1",
16-
"saloonphp/saloon": "^v3.0.0-beta.4",
17-
"illuminate/http": "^9.52 || ^10.0"
16+
"illuminate/http": "^9.52 || ^10.0",
17+
"saloonphp/saloon": "^v3.0.0-beta.5"
1818
},
1919
"require-dev": {
2020
"friendsofphp/php-cs-fixer": "^3.5",

tests/Feature/Body/HasBodyTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
test('the default body is loaded', function () {
1212
$request = new HasBodyRequest();
1313

14-
expect($request->body()->get())->toEqual('name: Sam');
14+
expect($request->body()->all())->toEqual('name: Sam');
1515
});
1616

1717
test('the http sender properly sends it', function () {

tests/Feature/Body/HasMultipartBodyTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
test('the default body is loaded', function () {
1313
$request = new HasMultipartBodyRequest();
1414

15-
expect($request->body()->get())->toEqual([
15+
expect($request->body()->all())->toEqual([
1616
'nickname' => new MultipartValue('nickname', 'Sam', 'user.txt', ['X-Saloon' => 'Yee-haw!']),
1717
]);
1818
});

tests/Feature/Body/HasXmlBodyTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
test('the default body is loaded', function () {
1313
$request = new HasXmlBodyRequest();
1414

15-
expect($request->body()->get())->toEqual('<p>Howdy</p>');
15+
expect($request->body()->all())->toEqual('<p>Howdy</p>');
1616
});
1717

1818
test('the content-type header is set in the pending request', function () {

0 commit comments

Comments
 (0)