From ede5289304c8efce6aba71a4f27b36840394808a Mon Sep 17 00:00:00 2001 From: Anastas Mironov Date: Fri, 5 Jul 2024 02:01:54 +0900 Subject: [PATCH 1/5] fix: laravel-data version ^4.5 --- composer.json | 2 +- src/UI/API/Data/LocalizationData.php | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 8eae0d8..302d049 100644 --- a/composer.json +++ b/composer.json @@ -21,7 +21,7 @@ "ibecsystems/admin-kit-core": "^3.1", "illuminate/contracts": "^10.0", "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/LocalizationData.php b/src/UI/API/Data/LocalizationData.php index fd56a9d..6467f09 100644 --- a/src/UI/API/Data/LocalizationData.php +++ b/src/UI/API/Data/LocalizationData.php @@ -3,10 +3,13 @@ namespace AdminKit\Localizations\UI\API\Data; use AdminKit\Localizations\Models\Localization; +use Spatie\LaravelData\Concerns\WithDeprecatedCollectionMethod; use Spatie\LaravelData\Data; class LocalizationData extends Data { + use WithDeprecatedCollectionMethod; + public function __construct( public string $key, public array|string $content, From 99fb298ee454c7f68b526333b9fe439f0b5815e9 Mon Sep 17 00:00:00 2001 From: Anastas Mironov Date: Fri, 5 Jul 2024 02:03:11 +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 302d049..9ca219a 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", "spatie/laravel-package-tools": "^1.14.0", "spatie/laravel-data": "^4.5", "spatie/laravel-json-api-paginate": "^1.13", From 8e5708a9163d67e9236b450945508da032806774 Mon Sep 17 00:00:00 2001 From: Anastas Mironov Date: Fri, 5 Jul 2024 02:08:23 +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 9ca219a..42c2eba 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "ibecsystems/admin-kit-localizations", - "description": "Localizations package for Admin Kit", + "description": "Localizations package for AdminKit", "keywords": [ "ibec-box", "laravel", From 2459ed7f561164eaaf29679f96614561f7c5eb43 Mon Sep 17 00:00:00 2001 From: Anastas Mironov Date: Fri, 5 Jul 2024 02:12:30 +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 42c2eba..01c069e 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,7 @@ { "name": "ibecsystems/admin-kit-localizations", "description": "Localizations package for AdminKit", + "type": "admin-kit-package", "keywords": [ "ibec-box", "laravel", From 61c50dfeb7b00cd69971508c001aa43b8e1ae4cb Mon Sep 17 00:00:00 2001 From: ast21 Date: Fri, 5 Jul 2024 01:29:00 +0000 Subject: [PATCH 5/5] Fix styling --- src/FilamentPlugin.php | 4 +--- src/Localizations.php | 4 +--- src/UI/API/Data/LocalizationData.php | 3 +-- 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/src/FilamentPlugin.php b/src/FilamentPlugin.php index aa72d15..95e01f8 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/Localizations.php b/src/Localizations.php index 0c80ea3..cc1b1be 100755 --- a/src/Localizations.php +++ b/src/Localizations.php @@ -2,6 +2,4 @@ namespace AdminKit\Localizations; -class Localizations -{ -} +class Localizations {} diff --git a/src/UI/API/Data/LocalizationData.php b/src/UI/API/Data/LocalizationData.php index 6467f09..5d37ab0 100644 --- a/src/UI/API/Data/LocalizationData.php +++ b/src/UI/API/Data/LocalizationData.php @@ -13,8 +13,7 @@ class LocalizationData extends Data public function __construct( public string $key, public array|string $content, - ) { - } + ) {} public static function fromModel(Localization $localization): LocalizationData {