diff --git a/app/Models/Settings.php b/app/Models/Settings.php index 032903f..3961e4c 100644 --- a/app/Models/Settings.php +++ b/app/Models/Settings.php @@ -67,7 +67,7 @@ class Settings extends Model // * TRANSFORMATIONS /** @phpstan-ignore-next-line */ if ($model->logo instanceof UploadedFile) { - ShowroomFileHelper::storeFileWithUUIDName($model->logo, $model); + $model->logo = ShowroomFileHelper::storeFileWithUUIDName($model->logo, $model); } }); static::created(function (self $model) { @@ -77,7 +77,7 @@ class Settings extends Model // * TRANSFORMATIONS /** @phpstan-ignore-next-line */ if ($model->logo instanceof UploadedFile) { - ShowroomFileHelper::storeFileWithUUIDName($model->logo, $model); + $model->logo = ShowroomFileHelper::storeFileWithUUIDName($model->logo, $model); } }); static::updated(function (self $model) { diff --git a/schemas/brand.schema.json b/schemas/brand.schema.json index 2dc34f6..1ea4b43 100644 --- a/schemas/brand.schema.json +++ b/schemas/brand.schema.json @@ -42,10 +42,6 @@ "description": "Couleur de la marque", "$ref": "#/$defs/hexcolor" }, - "shelf": { - "description": "Les enfant sont rendus sur un étagere.", - "type": "boolean" - }, "status": { "description": "Visible ? (présent dans l'export).", "type": "boolean" @@ -81,7 +77,6 @@ "name", "slug", "color", - "shelf", "status", "picture", "created_at", diff --git a/schemas/range.schema.json b/schemas/range.schema.json index 7e394b8..fe0e891 100644 --- a/schemas/range.schema.json +++ b/schemas/range.schema.json @@ -57,10 +57,6 @@ "type": "integer", "minimum": 1 }, - "shelf": { - "description": "Les enfant sont rendus sur un étagere.", - "type": "boolean" - }, "status": { "description": "Visible ? (présent dans l'export).", "type": "boolean" @@ -103,7 +99,6 @@ "slug", "picture", "order", - "shelf", "status", "brand_id", "font_id",