From eaa0fe04639810fb2ffb26aee0458ab9ea7e3895 Mon Sep 17 00:00:00 2001 From: Anastas Mironov Date: Fri, 5 Jul 2024 02:01:55 +0900 Subject: [PATCH 1/5] fix: laravel-data version ^4.5 --- composer.json | 2 +- src/UI/API/Data/ProjectData.php | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 735b5f5..e4b60dc 100644 --- a/composer.json +++ b/composer.json @@ -22,7 +22,7 @@ "illuminate/contracts": "^10.0", "joshembling/image-optimizer": "^1.3", "spatie/laravel-package-tools": "^1.14.0", - "spatie/laravel-data": "^3.2", + "spatie/laravel-data": "^4.5", "spatie/laravel-json-api-paginate": "^1.13", "spatie/laravel-query-builder": "^5.7", "spatie/laravel-translatable": "^6.5" diff --git a/src/UI/API/Data/ProjectData.php b/src/UI/API/Data/ProjectData.php index ef24fb8..ca1c9a1 100644 --- a/src/UI/API/Data/ProjectData.php +++ b/src/UI/API/Data/ProjectData.php @@ -3,10 +3,13 @@ namespace AdminKit\Projects\UI\API\Data; use AdminKit\Projects\Models\Project; +use Spatie\LaravelData\Concerns\WithDeprecatedCollectionMethod; use Spatie\LaravelData\Data; class ProjectData extends Data { + use WithDeprecatedCollectionMethod; + public function __construct( public string $title, public string $description, From 195efeaf9105273fa3ca3d6d647a1a65b9676755 Mon Sep 17 00:00:00 2001 From: Anastas Mironov Date: Fri, 5 Jul 2024 02:03:12 +0900 Subject: [PATCH 2/5] feat: support laravel 11 --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index e4b60dc..25284f6 100644 --- a/composer.json +++ b/composer.json @@ -19,7 +19,7 @@ "php": "^8.1", "filament/filament": "^3.0-stable", "ibecsystems/admin-kit-core": "^3.1", - "illuminate/contracts": "^10.0", + "illuminate/contracts": "^10.0|^11.0", "joshembling/image-optimizer": "^1.3", "spatie/laravel-package-tools": "^1.14.0", "spatie/laravel-data": "^4.5", From 1a65f6e716e593965ea923be6b8805bf167802b7 Mon Sep 17 00:00:00 2001 From: Anastas Mironov Date: Fri, 5 Jul 2024 02:08:25 +0900 Subject: [PATCH 3/5] chore: change description --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 25284f6..3af1209 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "ibecsystems/admin-kit-projects", - "description": "Projects package for Admin Kit", + "description": "Projects package for AdminKit", "keywords": [ "ibec-box", "laravel", From 9a1a89956ffd221d2440dbb0bead828db51b4511 Mon Sep 17 00:00:00 2001 From: Anastas Mironov Date: Fri, 5 Jul 2024 02:12:32 +0900 Subject: [PATCH 4/5] feat: set package type to admin-kit-package --- composer.json | 1 + 1 file changed, 1 insertion(+) diff --git a/composer.json b/composer.json index 3af1209..56e96dd 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,7 @@ { "name": "ibecsystems/admin-kit-projects", "description": "Projects package for AdminKit", + "type": "admin-kit-package", "keywords": [ "ibec-box", "laravel", From fe9741985738781b37ed1148efdbfe5fc4e02dcf Mon Sep 17 00:00:00 2001 From: ast21 Date: Fri, 5 Jul 2024 01:29:34 +0000 Subject: [PATCH 5/5] Fix styling --- src/FilamentPlugin.php | 4 +--- src/Projects.php | 4 +--- src/UI/API/Data/ProjectData.php | 3 +-- 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/src/FilamentPlugin.php b/src/FilamentPlugin.php index b226a38..952973f 100644 --- a/src/FilamentPlugin.php +++ b/src/FilamentPlugin.php @@ -20,9 +20,7 @@ public function register(Panel $panel): void ]); } - public function boot(Panel $panel): void - { - } + public function boot(Panel $panel): void {} public static function make(): static { diff --git a/src/Projects.php b/src/Projects.php index bc47cef..26869d2 100755 --- a/src/Projects.php +++ b/src/Projects.php @@ -2,6 +2,4 @@ namespace AdminKit\Projects; -class Projects -{ -} +class Projects {} diff --git a/src/UI/API/Data/ProjectData.php b/src/UI/API/Data/ProjectData.php index ca1c9a1..4a6e87d 100644 --- a/src/UI/API/Data/ProjectData.php +++ b/src/UI/API/Data/ProjectData.php @@ -15,8 +15,7 @@ public function __construct( public string $description, public string $image, public array $tags, - ) { - } + ) {} public static function fromModel(Project $project): ProjectData {