diff --git a/composer.json b/composer.json index 8eae0d8..01c069e 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,7 @@ { "name": "ibecsystems/admin-kit-localizations", - "description": "Localizations package for Admin Kit", + "description": "Localizations package for AdminKit", + "type": "admin-kit-package", "keywords": [ "ibec-box", "laravel", @@ -19,9 +20,9 @@ "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": "^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/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 fd56a9d..5d37ab0 100644 --- a/src/UI/API/Data/LocalizationData.php +++ b/src/UI/API/Data/LocalizationData.php @@ -3,15 +3,17 @@ 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, - ) { - } + ) {} public static function fromModel(Localization $localization): LocalizationData {