Skip to content

Commit 448854e

Browse files
authored
Merge pull request #26 from etsvThor/bugfix/laravel-data-upgrade
follow upgrade guide laravel data v3 to v4
2 parents 4b46984 + 5a9731f commit 448854e

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
# Changelog
2+
## 1.0.1
3+
- Follow upgrade guide for laravel-data
4+
- Drop support for laravel 9
5+
- Drop support for `spatie/laravel-data` v3
26

37
## 1.0.0
48
- Support laravel 11

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
"require": {
1616
"php": "~8.1.0 | ~8.2.0 | ~8.3.0",
1717
"spatie/laravel-permission": "^4.0 | ^5.0 | ^6.0",
18-
"laravel/framework": "^9.0 | ^10.0 | ^11.0",
18+
"laravel/framework": "^10.0 | ^11.0",
1919
"laravel/socialite": "^5.1",
20-
"spatie/laravel-data": "^3.9 | ^4.0"
20+
"spatie/laravel-data": "^4.0"
2121
},
2222
"autoload": {
2323
"psr-4": {

src/Http/Controllers/WebhookController.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
use EtsvThor\BifrostBridge\Jobs\ProcessWebhookBifrost;
77
use Illuminate\Http\JsonResponse;
88
use Illuminate\Http\Request;
9+
use Spatie\LaravelData\DataCollection;
910

1011
class WebhookController
1112
{
@@ -32,7 +33,7 @@ public function bifrost(Request $request): JsonResponse
3233
}
3334

3435
ProcessWebhookBifrost::dispatch(
35-
BifrostRoleData::collection($request->get('roles')),
36+
BifrostRoleData::collect($request->get('roles'), DataCollection::class),
3637
);
3738

3839
return response()->json(['success' => true]);

0 commit comments

Comments
 (0)