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 57e0b0a + 3924705 commit b9d9bfe
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-reviews",
"description": "Reviews package for Admin Kit",
"description": "Reviews 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/Reviews.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,4 @@

namespace AdminKit\Reviews;

class Reviews
{
}
class Reviews {}
6 changes: 4 additions & 2 deletions src/UI/API/Data/ReviewData.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,19 @@
namespace AdminKit\Reviews\UI\API\Data;

use AdminKit\Reviews\Models\Review;
use Spatie\LaravelData\Concerns\WithDeprecatedCollectionMethod;
use Spatie\LaravelData\Data;

class ReviewData extends Data
{
use WithDeprecatedCollectionMethod;

public function __construct(
public string $text,
public string $author,
public string $bio,
public string $photo,
) {
}
) {}

public static function fromModel(Review $review): ReviewData
{
Expand Down

0 comments on commit b9d9bfe

Please # to comment.