Skip to content

Commit

Permalink
Merge pull request #5 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 174ced0 + bfa5a6b commit a9340b1
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-entry-screens",
"description": "EntryScreens package for Admin Kit",
"description": "EntryScreens 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/EntryScreens.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,4 @@

namespace AdminKit\EntryScreens;

class EntryScreens
{
}
class EntryScreens {}
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
6 changes: 4 additions & 2 deletions src/UI/API/DTO/EntryScreenDTO.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,20 @@

use AdminKit\EntryScreens\Models\EntryScreen;
use Spatie\LaravelData\Attributes\MapName;
use Spatie\LaravelData\Concerns\WithDeprecatedCollectionMethod;
use Spatie\LaravelData\Data;
use Spatie\LaravelData\Mappers\SnakeCaseMapper;

#[MapName(SnakeCaseMapper::class)]
class EntryScreenDTO extends Data
{
use WithDeprecatedCollectionMethod;

public function __construct(
public string $title,
public string $background,
public ?string $subtitle,
) {
}
) {}

public static function fromModel(EntryScreen $entryScreen): EntryScreenDTO
{
Expand Down

0 comments on commit a9340b1

Please sign in to comment.