Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
daurensky authored and github-actions[bot] committed Apr 9, 2024
1 parent 3993f12 commit 3a62d59
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
6 changes: 3 additions & 3 deletions src/Models/Project.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

namespace AdminKit\Projects\Models;

use Spatie\MediaLibrary\HasMedia;
use Spatie\MediaLibrary\InteractsWithMedia;
use AdminKit\Core\Abstracts\Models\AbstractModel;
use Illuminate\Database\Eloquent\Casts\Attribute;
use AdminKit\Projects\Database\Factories\ProjectFactory;
use Illuminate\Database\Eloquent\Casts\Attribute;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Spatie\MediaLibrary\HasMedia;
use Spatie\MediaLibrary\InteractsWithMedia;
use Spatie\Translatable\HasTranslations;

class Project extends AbstractModel implements HasMedia
Expand Down
2 changes: 1 addition & 1 deletion src/UI/API/Controllers/ProjectController.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
namespace AdminKit\Projects\UI\API\Controllers;

use AdminKit\Projects\Models\Project;
use Spatie\LaravelData\DataCollection;
use AdminKit\Projects\UI\API\Data\ProjectData;
use Spatie\LaravelData\DataCollection;

class ProjectController extends Controller
{
Expand Down
7 changes: 3 additions & 4 deletions src/UI/API/Data/ProjectData.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,17 @@

namespace AdminKit\Projects\UI\API\Data;

use Spatie\LaravelData\Data;
use AdminKit\Projects\Models\Project;
use Spatie\LaravelData\Data;

class ProjectData extends Data
{
public function __construct(
public string $title,
public string $description,
public string $image,
public array $tags,
)
{
public array $tags,
) {
}

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

0 comments on commit 3a62d59

Please sign in to comment.