add set media fields
This commit is contained in:
parent
1ce7688d33
commit
fa8efd765f
10 changed files with 61 additions and 21 deletions
|
|
@ -8,6 +8,8 @@ class EloquentSetRepository implements SetRepository
|
|||
{
|
||||
$model = SetModel::create([
|
||||
'name' => $dto->name,
|
||||
'description' => $dto->description,
|
||||
'icon_image_url' => $dto->iconImageUrl,
|
||||
]);
|
||||
|
||||
return $this->toDomain($model);
|
||||
|
|
@ -36,6 +38,8 @@ class EloquentSetRepository implements SetRepository
|
|||
return new Set(
|
||||
id: $model->id,
|
||||
name: $model->name,
|
||||
description: $model->description,
|
||||
iconImageUrl: $model->icon_image_url,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue