Skip to content

Commit

Permalink
Merge pull request #3 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 d66b208 + fe97419 commit 76712e6
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-projects",
"description": "Projects package for Admin Kit",
"description": "Projects package for AdminKit",
"type": "admin-kit-package",
"keywords": [
"ibec-box",
"laravel",
Expand All @@ -19,10 +20,10 @@
"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": "^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/Projects.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,4 @@

namespace AdminKit\Projects;

class Projects
{
}
class Projects {}
6 changes: 4 additions & 2 deletions src/UI/API/Data/ProjectData.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,19 @@
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,
public string $image,
public array $tags,
) {
}
) {}

public static function fromModel(Project $project): ProjectData
{
Expand Down

0 comments on commit 76712e6

Please sign in to comment.