Skip to content

Commit

Permalink
Merge pull request #9 from IBEC-BOX/feat/upgrade-composer-json-file
Browse files Browse the repository at this point in the history
Feat/upgrade composer json file
  • Loading branch information
ast21 authored Jul 5, 2024
2 parents 2021cdf + 61c50df commit 558a128
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
7 changes: 4 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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"
Expand Down
4 changes: 1 addition & 3 deletions src/FilamentPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
4 changes: 1 addition & 3 deletions src/Localizations.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,4 @@

namespace AdminKit\Localizations;

class Localizations
{
}
class Localizations {}
6 changes: 4 additions & 2 deletions src/UI/API/Data/LocalizationData.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit 558a128

Please sign in to comment.